misode.github.io icon indicating copy to clipboard operation
misode.github.io copied to clipboard

SNBT output type should utilise single-quotes when string contains double-quotes

Open DorkOrc opened this issue 1 year ago • 0 comments

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.

DorkOrc avatar Jun 22 '24 16:06 DorkOrc