Data component format/compostable

Minecraft Wiki article. Categories: Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/compostable on the Minecraft Wiki. Mirrored from revision 3693691. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • [NBT Compound / JSON Object] minecraft:compostable:
      • [Float][String] layers: Required. The number of compost layers added when using this item on a non-full composter (level less than 7). Either a fixed number or the namespaced ID of a number provider, which is evaluated using the block_interact 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 0. The final compost level after the new layers are added is clamped to the range 0–7.


Sources