Locked chests by minecraft:lock component cannot be opened using items renamed by minecraft:item_name component.
To reproduce:
Run the following two commands:
/give @s minecraft:stick[minecraft:item_name="example"]
/give @s minecraft:chest[minecraft:lock="example"]
Place the chest.
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
is duplicated by 1
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 History – Snapshot Version History – The 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
Can
[media].