Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DorkOrc opened this issue Jun 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DorkOrc
Copy link

DorkOrc commented Jun 22, 2024

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 DorkOrc changed the title [enhancement] SNBT output type should utilise single-quotes when string contaings double-quotes [enhancement] SNBT output type should utilise single-quotes when string contains double-quotes Jun 22, 2024
@misode misode added the enhancement New feature or request label Jun 22, 2024
@DorkOrc DorkOrc changed the title [enhancement] SNBT output type should utilise single-quotes when string contains double-quotes SNBT output type should utilise single-quotes when string contains double-quotes Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants