mojira.dev
MC-271288

Locked chests cannot be opened using items renamed with the item_name

Locked chests by minecraft:lock component cannot be opened using items renamed by minecraft:item_name component.

To reproduce:

  1. Run the following two commands:

    • /give @s minecraft:stick[minecraft:item_name="example"]

    • /give @s minecraft:chest[minecraft:lock="example"]

  2. Place the chest.

  3. Hold the stick and interact with the chest.

It should be able to open, but it stays locked and will not open.

 

(I'm sorry if I’m wrong, as English isn't my first language)

Linked issues

Attachments

Comments 2

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Shambis

(Unassigned)

Confirmed

(Unassigned)

command

1.20.6

Retrieved