All versions
1.6-BETA
Beta
tool_required Parameterlast year 490
Compatibility
Minecraft: Java Edition
1.21.1
Platform
Fabric
Supported environments
Server-side
Singleplayer
Required content
Any compatible version
Changes
Added
tool_required (optional): Restrict which tools/items can trigger the spawn (default: any item)
- If omitted, any item (including bare hands) can trigger the spawn
- Single item format:
"minecraft:diamond_hoe"- Only diamond hoes trigger the spawn - Array format:
["minecraft:diamond_hoe", "minecraft:netherite_hoe"]- Any of these tools trigger the spawn - Should work with any Modded item: Use full item IDs with namespace (e.g.,
"minecraft:diamond_hoe","farmersdelight:minced_beef") - The player must be holding the required item in their main hand when breaking the block
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:u2XdVUM2:UOLISVQy"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:u2XdVUM2:UOLISVQy"
}

