Tags
Creators
Details
0.2.3
Compatibility
Changes
ChangeLog 0.2.2 -> 0.2.3
New subcommand [magnet/magnit]
This version only adds a new subcommand for the blocks effect:
If there is no target, the default target is the player
- '[blocks] [target] [magnet/magnit] <radius (placeholders, math)> <blocks>'
Will collect the item that was last broken from dirt, stone, and cobblestone. Compatible with the [break] subcommand meaning if a player breaks an item, it will immediately go into the player's inventory, as if magnetism were applied
- '[blocks] [player] [magnet] -1 dirt;stone;cobblestone'
This will collect items EXCEPT dirt and cobblestone (since the ! prefix indicates exclusion), but only stone can be broken with in a 2x2x2 block radius, provided the [break] subcommand is used
- ‘[blocks] [magnet] 2;2;2 !dirt;stone;!cobblestone’
Here, it will collect all items except dirt, stone, and cobblestone
- ‘[blocks] [magnet] 5’
Also, a Map modification like this:
- type: blocks
target: player
action: magnet
radius: ‘3;3;3’
drop_items: true # only for [break]
materials:
- STONE # allowed
- ‘dirt’ # allowed (case-insensitive)
- ‘!cobblestone’ # prohibited (exclamation mark)
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:319y4kBV:QDaMaMLC"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:319y4kBV:QDaMaMLC"
}

