Tags
Creators
Details
1.2
Compatibility
Changes
You can now play a sound when a command is blocked.
blockSound:
sound: ENTITY_ENDERMAN_TELEPORT
pitch: 0.5
volume: 1.0
The "sound" uses Bukkit's Sound enum, since XSeries does not support 1.20.6 currently. This can differ between versions, so you'll want to make sure the list you are using is for your Minecraft version. 1.8: https://helpch.at/docs/1.8.8/index.html?org/bukkit/Sound.html 1.20: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
Pitch and Volume values are floats that can range from 0.0 to 1.0.
API Notice As of this update, we have renamed a number of methods to be more consistent with the Spigot ecosystem. The previous names are now deprecated, with removal planned within the next few updates.
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:OchFApgp:KjZd4fMF"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:OchFApgp:KjZd4fMF"
}

