Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-139618

Vanilla BP JSON has inline comments, breaking json parsers and workflows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.18.0.21 Beta, 1.17.11 Hotfix, 1.17.34, 1.18.2 Hotfix
    • None
    • Confirmed
    • Multiple
    • 1088077

      Inline comments are present in the item json files of the vanilla behavior pack. This is a non-standard use of json which breaks 3rd party parsers.

      Examples include (bold for clarity):

      appleEnchanted.json :

        "duration": 120, // 2 * 60

        "name": "resistance", // damage resistance

      golden_apple.json

        "duration": 120, // 2 * 60

      pufferfish.json

        "name": "nausea", // confusion

      wheat_seeds.json

        *  "crop_result": "wheat" *// wheatCrops

       

      Suggested fix is to remove inline comments where currently present.

       

            abrightmoore Adrian Brightmoore
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: