Data component format/container
Minecraft Wiki article. Categories: Top-level_data_pages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/container on the Minecraft Wiki. Mirrored from revision 3428571. 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 List / JSON Array] minecraft:container: The items contained in this container's slots. If present on an item, the first 5 item slots in the container are listed in the tooltip, and the number of any extra slots are listed as "and
<N>more..." underneath (only seen on shulker boxes in normal gameplay or ctrl-middle-clicked containers in creative mode). This component supports up to 256 item slots but, when present on some block entities, the number of slots may be artificially limited based on the number of slots the block needs (e.g. 1 for decorated pots, and 27 for chests).- [NBT Compound / JSON Object]: A single item.
- [NBT Compound / JSON Object] item: The item stack in this slot.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Int] slot: A slot in this container. Can be from 0 to 255 (inclusive).
- [NBT Compound / JSON Object] item: The item stack in this slot.
- [NBT Compound / JSON Object]: A single item.
- [NBT List / JSON Array] minecraft:container: The items contained in this container's slots. If present on an item, the first 5 item slots in the container are listed in the tooltip, and the number of any extra slots are listed as "and
Sources
- Data component format/container — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3428571.