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

Entity data only takes id not other nbt #492

Open
L-Lawlite opened this issue Mar 23, 2024 · 0 comments
Open

Entity data only takes id not other nbt #492

L-Lawlite opened this issue Mar 23, 2024 · 0 comments
Labels
bug Something isn't working ✨ schemas

Comments

@L-Lawlite
Copy link

Crash report

  • Page url: https://misode.github.io/loot-table/
  • Generator ID: loot_table
  • Current version: 1.20.5
  • Latest version: 24w12a

Stack trace

SyntaxError: Error importing: Unexpected end of JSON input
    at yi (../../node_modules/comment-json/src/parse.js:94:16)
    at unexpected_end (../../node_modules/comment-json/src/parse.js:120:4)
    at type (../../node_modules/comment-json/src/parse.js:128:16)
    at is (../../node_modules/comment-json/src/parse.js:246:10)
    at parse_object (../../node_modules/comment-json/src/parse.js:365:11)
    at walk (../../node_modules/comment-json/src/parse.js:417:15)
    at parse (src/app/services/Source.ts:24:23)
    at async (src/app/services/Source.ts:43:8)
    at async (src/app/components/generator/SourcePanel.tsx:71:17)

Generator JSON

{
  "type": "minecraft:empty",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:armor_stand",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": "'{\"text\":\"MineBot\",\"italic\":false}'",
                "minecraft:custom_model_data": 1,
                "minecraft:entity_data": {
                  "id": "minecraft:armor_stand",
                  "ShowId": 1
                }
              }
            }
          ]
        }
      ]
    }
  ]
}
@misode misode added bug Something isn't working ✨ schemas labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ✨ schemas
Projects
None yet
Development

No branches or pull requests

2 participants