Minecraft:Data component format/block transformer: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 5: | Line 5: | ||
**** {{nbt|compound|block_state_provider}}: A [[Minecraft:block state provider]] which provides the state for the transformed block. Only block state providers used in world generation are allowed. | **** {{nbt|compound|block_state_provider}}: A [[Minecraft:block state provider]] which provides the state for the transformed block. Only block state providers used in world generation are allowed. | ||
***** {{nbt inherit/block state provider}} | ***** {{nbt inherit/block state provider}} | ||
**** {{nbt|string}}{{nbt|compound|block_sound}}: Optional. {{json_ref|sound event|inline=1}} to play upon successful transformation. Defaults to none. | **** {{nbt|string}}{{nbt|compound|block_sound}}: Optional. {{json_ref|server-side sound event|inline=1}} to play upon successful transformation. Defaults to none. | ||
***** {{nbt inherit/sound event|sounds}} | ***** {{nbt inherit/sound event|sounds}} | ||
**** {{nbt|string|particle}}: Optional. The particle to use for the interaction. Can be one of {{cd|none|scrape|wax_on|wax_off|d=or}}. Defaults to {{cd|none}}. | **** {{nbt|string|particle}}: Optional. The particle to use for the interaction. Can be one of {{cd|none|scrape|wax_on|wax_off|d=or}}. Defaults to {{cd|none}}. | ||
Latest revision as of 11:46, 20 July 2026
- Template:Nbt: The game iterates through this list until it finds an element whose Minecraft:block state provider returns a result.
- Template:Nbt: A single object in the list.
- Template:Nbt: A Minecraft:block state provider which provides the state for the transformed block. Only block state providers used in world generation are allowed.
- Template:NbtTemplate:Nbt: Optional. Template:Json ref to play upon successful transformation. Defaults to none.
- Template:Nbt: Optional. The particle to use for the interaction. Can be one of Template:Cd. Defaults to Template:Cd.
- Template:Nbt: Optional. Interacting with one of the specified faces will not transform the block.
- Template:Nbt: An element in the list. Can be one of Template:Cd.
- Template:Nbt: Optional. The Minecraft:loot table to use for dropping items upon successful transformation. If not present, no loot is dropped.
- Template:Nbt: Optional. Where in the block space the dropped loot should spawn. Can be either Template:Cd (loot spawns at the center of the block space) or Template:Cd (loot spawns at the center of the face interacted with). Defaults to Template:Cd.
- Template:Nbt: Optional. Configures how nearby blocks should be affected by the transformation. Can be either Template:Cd (only the targeted block is affected) or Template:Cd (if input and output blocks are both copper chests of any weathering state, waxed or unwaxed, this transformation will affect both sides of a double chest).
- Template:Nbt: Optional. Whether or not the item should be consumed upon successful transformation, if it is stackable and the player is in survival or adventure mode. Defaults to Template:Cd.
- Template:Nbt: Optional. How much Minecraft:durability the item loses upon successful transformation, if it is not stackable and the player is in survival or adventure mode. Defaults to Template:Cd.
- Template:Nbt: A single object in the list.
- Template:Nbt: The game iterates through this list until it finds an element whose Minecraft:block state provider returns a result.