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

Lock tag in chests is not in the "{\"text\":\"name\"}" format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w50a
    • None
    • Windows 10 64 bit, Java 1.8.0_191 64 bits, 2560x1440 144hz, i7 7700hq, 32 GB RAM, notebook.
    • Unconfirmed

      Chests don't have their {Lock:""} in the new format used everywhere else. I noticed that when I tried to copy a name of an item into the Lock of a chest, so then I could open it with this item.

      What I expected to happen was...:
      Copying the name from an item in a chest/dropper/whatever into the Lock tag of a chest should set the Lock value to the item's name so then I can use it to open the chest.
       
      What actually happened was...:
      It copied the "{\"text\":\"<name here>\"}" into the Lock tag and requires an item named {"text":"<name here>"} to open instead of <name here>.
       
      Steps to Reproduce:
      1. Put a chest/dropper/dispenser somewhere you know with a named item inside (example: a torch named 'potato' in the first slot);
      2. Put a chest somewhere else;
      3. Run the command:

      /data modify block <pos of the chest> Lock set from block <pos of the chest/dropper/dispenser with the item> Items[0].tag.display.Name

      4. It will set to {Lock:" 

      {\"text\":\"potato\"}

      "} and will require an item named {"text":"potato"} instead of 'potato'

            Unassigned Unassigned
            lohkdesgds @lohkdesgds
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: