Tags
Creators
Details
0.6.0-preview.2+1.21.5
Compatibility
Changes
It's been a bit, but here's a new preview! This preview changes the way buckets are defined with some minor action changes.
For a few more details regarding the split and future you can look at the roadmap to 1.21!
Changes
Item Behaviour Components
minecraft:bucket
- Unified block and fluid placement for buckets.
- The
fluid,blockandtransforms_intofields have been replaced with world modifications in the newmodificationfield.- This means that the previously hardcoded behaviour of the
minecraft:emptyfluid draining a fluid instead has been removed.
- This means that the previously hardcoded behaviour of the
| Previously set field | World modification |
|---|---|
Fluid minecraft:empty |
minecraft:drain_fluid |
| Any other fluid | minecraft:place_fluid with the specified fluid |
| Any block | minecraft:place_block with the specified block |
- Moved the placed entity up a level by only specifying the entity type.
- This means that the optional
require_other_successful_placementfield has been removed and now always requires a successful placement. - The field itself is still optional.
- This means that the optional
So if you had this:
{
"minecraft:bucket": {
"emptying_sound_event": "minecraft:item.bucket.empty_fish",
"entity": {
"entity": "minecraft:pufferfish",
"require_other_successful_placement": true
},
"fluid": "minecraft:water",
"transforms_into": "minecraft:bucket"
}
}
You now have to use this instead:
{
"minecraft:bucket": {
"entity": "minecraft:pufferfish",
"modification": {
"type": "minecraft:place_fluid",
"fluid": "minecraft:water",
"place_sound": "minecraft:item.bucket.empty_fish",
"transforms_into": "minecraft:bucket"
}
}
}
Actions
minecraft:place_block
- Removed the
decrement_countfield.- This should be replaced by a sequence with a
minecraft:decrement_itemaction.
- This should be replaced by a sequence with a
So if you had this:
{
"type": "minecraft:place_block",
"block": "minecraft:fire",
"decrement_count": true,
"position": "interacted"
}
You now have to use this instead:
{
"type": "minecraft:sequence",
"handler": "minecraft:passing",
"entries": [
{
"type": "minecraft:place_block",
"block": "minecraft:fire",
"position": "interacted"
},
{
"type": "minecraft:decrement_item",
"amount": 1
}
]
}
- Added an optional
place_soundfield.- When specified, this sound will be played instead of the normal block place sound.
World Modifications
Can modify the world by adding or removing something from it.
minecraft:drain_fluid
- Drains a fluid from the world.
- Has no additional fields.
- Leaves an item stack specified by the drained fluid.
minecraft:place_fluid
- Places a fluid in the world.
- Fields:
fluid: A fluid. The fluid to place.place_sound: A sound event. The sound to play when placed.transforms_into: An item. The item to leave when successfully placed.
- Leaves the item stack specified in the
transforms_intofield.
minecraft:place_block
- Places a block in the world.
- Fields:
block: A block picker. The block to place.place_sound: A sound event. The sound to play when placed.transforms_into: An item. The item to leave when successfully placed.
- Leaves the item stack specified in the
transforms_intofield.
Fixes
- Exchanging item stacks now works correctly again by dropping the exchanged item stack instead of the current item stack.
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:ZclAAHfk:lrX9IZsz"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ZclAAHfk:lrX9IZsz"
}

