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

Minecraft:Block transformer definition: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 29: Line 29:
**** {{nbt|int|item_damage_per_use}}: 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 {{cd|1}}.<section end="json format" />
**** {{nbt|int|item_damage_per_use}}: 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 {{cd|1}}.<section end="json format" />
</div>
</div>
== Vanilla usage ==
Vanilla uses block transformers for tools that strip, scrape, unwax, till or flatten blocks. {{cd|item_damage_per_use}} is always set to {{cd|1}}.
{| class="wikitable"
! Item !! Blocks affected !! Result !! Sound !! Particle !! Additional properties
|-
| rowspan="3" | {{ItemLink|Axe}}
| {{BlockLink|Wood}}, {{BlockLink|hyphae}}, {{BlockLink|logs}}, {{BlockLink|stems}}, and {{BlockLink|block of bamboo}}
| Converts to the matching stripped variant
| {{cd|item.axe.strip}}
| None
|-
| Any unwaxed oxidized state of [[Minecraft:copper]] blocks: {{BlockLink|block of copper}}, {{BlockLink|cut copper}}, {{BlockLink|chiseled copper}}, {{BlockLink|cut copper slab}}, {{BlockLink|cut copper stairs}}, {{BlockLink|copper trapdoor}}, {{BlockLink|copper bars}}, {{BlockLink|copper grate}}, {{BlockLink|copper bulb}}, {{BlockLink|copper lantern}}, {{BlockLink|copper golem statue}}, {{BlockLink|lightning rod}}, {{BlockLink|copper chain}}, {{BlockLink|copper chest}}, and {{BlockLink|copper door}}
| Reduces the oxidation stage by one (oxidized → weathered → exposed → unoxidized)
| {{cd|item.axe.scrape}}
| {{cd|scrape}}
| rowspan="2" | {{cd|update_from_neighbors}}: {{cd|false}} for doors and chests<br>{{cd|transform_type}}: {{cd|copper_chest}} for chests
|-
| Waxed variant of any block listed above (all oxidation stages, including unoxidized)
| Converts to the matching unwaxed variant
| {{cd|item.axe.wax_off}}
| {{cd|wax_off}}
|-
| rowspan="3" | {{ItemLink|Hoe}}
| Blocks in {{Tag link|block|turns_into_farmland}} tag with air directly above
| {{BlockLink|Farmland}}
| {{cd|item.hoe.till}}
| None
| {{cd|disallowed_faces}} contains {{cd|down}}
|-
| {{BlockLink|Coarse Dirt}} with air directly above
| {{BlockLink|Dirt}}
| {{cd|item.hoe.till}}
| None
|-
| {{BlockLink|Rooted Dirt}}
| {{BlockLink|Dirt}}
| {{cd|item.hoe.till}}
| None
| {{cd|loot}}: {{cd|minecraft:till/rooted_dirt}}<br>{{cd|drop_strategy}}: {{cd|clicked_face}}
|-
| {{ItemLink|Shovel}}
| Blocks in {{Tag link|block|turns_into_dirt_path}} tag with air directly above
| {{BlockLink|Dirt Path}}
| {{cd|item.shovel.flatten}}
| None
| {{cd|disallowed_faces}} contains {{cd|down}}
|}


== History ==
== History ==

Revision as of 11:03, 30 August 2026

Template:Exclusive Template:In development

A block transformer contains rules for transforming blocks into another blocks. They are used by the Template:Data component link component to allow an item to transform blocks on use.

Definition

Block transformers can be defined in Minecraft:data packs, as part of the directory structure below.

Template:Data pack directory

JSON Format

Block transformers are defined using the following format:

Vanilla usage

Vanilla uses block transformers for tools that strip, scrape, unwax, till or flatten blocks. Template:Cd is always set to Template:Cd.

Item Blocks affected Result Sound Particle Additional properties
Template:ItemLink Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, and Template:BlockLink Converts to the matching stripped variant Template:Cd None
Any unwaxed oxidized state of Minecraft:copper blocks: Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, and Template:BlockLink Reduces the oxidation stage by one (oxidized → weathered → exposed → unoxidized) Template:Cd Template:Cd Template:Cd: Template:Cd for doors and chests
Template:Cd: Template:Cd for chests
Waxed variant of any block listed above (all oxidation stages, including unoxidized) Converts to the matching unwaxed variant Template:Cd Template:Cd
Template:ItemLink Blocks in Template:Tag link tag with air directly above Template:BlockLink Template:Cd None Template:Cd contains Template:Cd
Template:BlockLink with air directly above Template:BlockLink Template:Cd None
Template:BlockLink Template:BlockLink Template:Cd None Template:Cd: Template:Cd
Template:Cd: Template:Cd
Template:ItemLink Blocks in Template:Tag link tag with air directly above Template:BlockLink Template:Cd None Template:Cd contains Template:Cd

History

Template:HistoryTable

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Blockumwandler Minecraft:ja:ブロック変換器 Minecraft:zh:方块变换效果定义格式