misode.github.io
misode.github.io copied to clipboard
SNBT output type should utilise single-quotes when string contains double-quotes
For example, this predicate (once #547 is fixed) outputs this:
{
condition: "minecraft:entity_properties",
entity: "this",
predicate: {
equipment: {
mainhand: {
components: {
"minecraft:custom_name": "{\"text\":\"Test\",\"color\":\"red\"}"
}
}
}
}
}
But line 8 could instead be '{"text":"Test","color":"red"}' as shown in /data get and in general prefered as it's more readable.