Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Data component format/block transformer: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(One intermediate revision by the same user not shown)
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}}.
Line 11: Line 11:
***** {{nbt|string}}: An element in the list. Can be one of {{cd|up|down|north|south|east|west|d=or}}.
***** {{nbt|string}}: An element in the list. Can be one of {{cd|up|down|north|south|east|west|d=or}}.
**** {{nbt|string|loot}}: Optional. The [[Minecraft:loot table]] to use for dropping items upon successful transformation. If not present, no loot is dropped.
**** {{nbt|string|loot}}: Optional. The [[Minecraft:loot table]] to use for dropping items upon successful transformation. If not present, no loot is dropped.
**** {{nbt|string|drop_strategy}}: Optional. Where in the block space the dropped loot should spawn. Can be either {{cd|from_middle}} (loot spawns at the center of the block space) or {{cd|clicked_face}} (loot spawns at the center of the face interacted with). Defaults to {{cd|from_middle}} if not present.
**** {{nbt|string|drop_strategy}}: Optional. Where in the block space the dropped loot should spawn. Can be either {{cd|from_middle}} (loot spawns at the center of the block space) or {{cd|clicked_face}} (loot spawns at the center of the face interacted with). Defaults to {{cd|from_middle}}.
**** {{nbt|string|transform_type}}: Optional. Configures how nearby blocks should be affected by the transformation. Can be either {{cd|single_block}} (only the targeted block is affected) or {{cd|copper_chest}} (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).
**** {{nbt|string|transform_type}}: Optional. Configures how nearby blocks should be affected by the transformation. Can be either {{cd|single_block}} (only the targeted block is affected) or {{cd|copper_chest}} (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).
**** {{nbt|boolean|consume_on_use}}: 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 {{cd|true}}.
**** {{nbt|boolean|consume_on_use}}: 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 {{cd|true}}.

Latest revision as of 11:46, 20 July 2026