Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-271288

Locked chests cannot be opened using items renamed with the item_name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.20.6
    • Confirmed
    • (Unassigned)

      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)

        1. 無題.mp4
          9.90 MB
        2. Confirm.mp4
          3.30 MB

            Unassigned Unassigned
            Shambis Shambis
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: