Tags
Creators
Details
5.4.2
Compatibility
Changes
New Else block condition
Meet with new block: Else. This block will execute actions between pistons if previous condition was not met.
Example: Player joined world -> If player name is "Notch" { Set Gamemode Creative } Else { Send Message: "Welcome to world!"}
If player's name will be "Steve" it will execute only code from Else, like sending message "Welcome to world".
It makes conditions easier to understand and easier to use.

New %list(name, index) placeholder
We added a new placeholders: %list(name, index) %list_global(name, index) %list_local(name, index) %list_saved(name, index)
If world has variable with list value with specified name and type, it will replace placeholder with value that stores in list by index (counting starts with 1).
Example: World has global variable with list value: CoolPeopleNames (Notch, Steve, Alex)
To get first value (in that case "Notch") we use placeholder in text like this: %list_global(CoolPeopleNames, 1)
Fixes
- Now Left Click and Right Click events are cancellable.
- Now Show Title and Show Action Bar actions support only and only Legacy or MiniMessage formats.
- Now food level will be not changed in lobby world or world's build mode.
- Fixed issue that prevented from placing pistons on other coding platforms.
This update contains changes to localization files, to remove current and replace with new - /oc resetlocale
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:pMgywsVc:P0sKU7pk"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:pMgywsVc:P0sKU7pk"
}

