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 81: Line 81:
| {{cd|item.hoe.till}}
| {{cd|item.hoe.till}}
| None
| None
|{{nbt|list|disallowed_faces}}: {{cd|[down]}}
|-
|-
| {{BlockLink|Rooted Dirt}}
| {{BlockLink|Rooted Dirt}}

Latest revision as of 11:04, 16 October 2026

Template:Exclusive

A block transformer contains rules for transforming blocks into other 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:Nbt is always set to Template:Cd.

Template:Tooltip Template:Tooltip Template:Tooltip Template:Tooltip Sound Particle Additional properties
Template:Cd<ref>block_transformer/axe − misode.mcmeta</ref> Template:BlockLink, Template:BlockLink, Template:BlockLink, Template:BlockLink, and Template:BlockLink Converts to the matching Minecraft:stripped variant, copy properties. 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 Minecraft:oxidation stage by one (oxidized → weathered → exposed → unoxidized), copy properties. Template:Cd Template:Cd

Template:Nbt: Template:Cd for doors and chests
Template:Nbt: Template:Cd for chests

Waxed variant of any block listed above (all oxidation stages, including unoxidized) Converts to the matching unwaxed variant, copy properties. Template:Cd Template:Cd
Template:Cd<ref>block_transformer/hoe − misode.mcmeta</ref> Blocks in Template:Tag link tag with Template:Tag link directly above Template:BlockLink Template:Cd None Template:Nbt: Template:Cd
Template:BlockLink with Template:Tag link directly above Template:BlockLink Template:Cd None Template:Nbt: Template:Cd
Template:BlockLink Template:BlockLink Template:Cd None Template:Nbt: Template:Cd
Template:Nbt: Template:Cd
Template:Cd<ref>block_transformer/shovel − misode.mcmeta</ref> Blocks in Template:Tag link tag with Template:Tag link directly above Template:BlockLink Template:Cd None Template:Nbt: Template:Cd

History

Template:HistoryTable

References

Template:Reflist

Navigation

Template:Navbox Java Edition technical

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