Entity format/Lockable

Minecraft Wiki article. Categories: Top-level_data_pages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Entity format/Lockable on the Minecraft Wiki. Mirrored from revision 3620169. 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] lock: Optional. An item predicate representing the "key" to open this container. If the player is not holding an item that passes this predicate in their main hand, they cannot open the container. Does not exist if empty. Represents the minecraft:lock component.

Sources