misode / misode.github.io

Data Pack Generators and Tools for Minecraft 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21
https://misode.github.io/
MIT License
491 stars 68 forks source link

Crafting for version 1.12.2 in the mods build, what's wrong? #512

Closed SayNooty closed 2 months ago

SayNooty commented 2 months ago

Crash report

Stack trace

SyntaxError: Error importing: Unexpected token "
    at Ei (../../node_modules/comment-json/src/parse.js:87:16)
    at unexpected (../../node_modules/comment-json/src/parse.js:132:4)
    at expect (../../node_modules/comment-json/src/parse.js:251:6)
    at parse_object (../../node_modules/comment-json/src/parse.js:365:11)
    at walk (../../node_modules/comment-json/src/parse.js:283:32)
    at parse_object (../../node_modules/comment-json/src/parse.js:365:11)
    at walk (../../node_modules/comment-json/src/parse.js:283:32)
    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)

Generator JSON

{
  "group": "ultimate_chest",
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "UNU",
    "NCN",
    "UNU"
  ],
  "key": {
    "N": {
      "item": "olderspark:netheriteblock"
    },
    "U": {
      "item": "industrialupgrade:upgrademodules"
      "data": 15
    },
    "C": {
      "item": "ironchest:iron_chest"
      "data": 6
    }
  },
  "result": {
    "item": "ultimatestorage:ultimate_chest",
    "count": 1
  }
}

misode commented 2 months ago

Your JSON is invalid, you are missing a comma here: image

SayNooty commented 1 month ago

Thank you!