-
Bug
-
Resolution: Won't Fix
-
None
-
24w39a
-
None
-
Community Consensus
-
(Unassigned)
Items that were previously able to open a locked container can no longer open locked containers when the item has a custom formatted text component. This is because the container's Lock field is upgraded in a way that tests for an exact component match.
While we can expect data packs and commands to break between versions, it is generally assumed that items and block upgrade without problems.
How to reproduce:
- Create a world in 1.21.1 (or in a snapshot before 24w39a)
- Place a locked chest
/setblock ~ ~ ~ chest{Lock:"secret"}
- Notice that you cannot open the chest
- Give yourself an item to open the chest
/give @s stick[custom_name='{"text":"secret","color":"red"}']
- Notice that you can open the chest when holding the item
- Open the world in 24w39a
- Notice that you can no longer open the chest when holding the item