Lock tag in chests is not in the "{\"text\":\"name\"}" format
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'
2019-01-04, 07:43 PM
2024-10-07, 01:31 PM
2019-01-04, 07:55 PM
0
2
-