Closed TheMrZZ closed 2 years ago
In Minecraft SNBT, " and ' are not interchangeable. For example, this works (full double quotes):
"
'
/give @s minecraft:diamond_sword{display:{Name:"[{\"text\":\"foo\"}]"}} 1
This also works (double quotes surrounded by single quotes):
/give @s minecraft:diamond_sword{display:{Name:'[{"text":"foo"}]'}} 1
This does not work (single quotes surrounded by double quotes):
/give @s minecraft:diamond_sword{display:{Name:"[{'text':'foo\\nbar'}]"}} 1
In Minecraft SNBT,
"
and'
are not interchangeable. For example, this works (full double quotes):This also works (double quotes surrounded by single quotes):
This does not work (single quotes surrounded by double quotes):