Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-125292

Invalid syntax in datapack tag files crash Minecraft

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 18w07a
    • None
    • Unconfirmed

      The game crashes when trying to load a resource pack with invalid syntax. For example, the following doesn't have quotes around the json element names:

      {
      replace:"false",
      values:[
      "nicknackgus:speedometer/tick"
      ]
      }

      This was saved at

      {world}

      /datapacks/speedometer/data/minecraft/tags/functions/tick.json

      Reloading the data packs did not cause a crash until I attempted to enable the data pack. I expected to receive an error instead of a crash. I also expected the json file to be loaded in lenient mode, and not throw an error for missing quotation marks, but understand if the quotation marks are required.

            Unassigned Unassigned
            NickNackGus Timothy Southwick
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: