Minecraft:Data component format/compostable: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
<div class="treeview"><onlyinclude> | <div class="treeview"><onlyinclude> | ||
** {{nbt|compound|minecraft:compostable}}: | ** {{nbt|compound|minecraft:compostable}}: | ||
*** {{nbt|string|layers}}: Required. | *** {{nbt|float}}{{nbt|string|layers}}: Required. The number of compost layers added when using this item on a non-full [[Minecraft:composter]] ({{cd|level}} less than 7). Either a fixed number or the [[Minecraft:namespaced ID]] of a [[Minecraft:number provider]], which is evaluated using the {{cd|block_interact}} [[Minecraft:loot context]] when the item is used. The optional '''block entity''' and '''tool''' loot context parameters are not supplied. The resolved value is rounded to the nearest whole number, and negative values are treated as {{cd|0}}. The final compost level after the new layers are added is clamped to the range 0–7.</onlyinclude> | ||
</div><noinclude> | </div><noinclude> | ||
[[Category:Top-level data pages]] | [[Category:Top-level data pages]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 11:09, 29 July 2026
- Template:Nbt:
- Template:NbtTemplate:Nbt: Required. The number of compost layers added when using this item on a non-full Minecraft:composter (Template:Cd less than 7). Either a fixed number or the Minecraft:namespaced ID of a Minecraft:number provider, which is evaluated using the Template:Cd Minecraft:loot context when the item is used. The optional block entity and tool loot context parameters are not supplied. The resolved value is rounded to the nearest whole number, and negative values are treated as Template:Cd. The final compost level after the new layers are added is clamped to the range 0–7.
- Template:Nbt: