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

JSON issues in configured features cause unreadable errors.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 20w29a
    • None
    • Windows 10 Home, Version 10.0.18362 Build 18362 (64 bit)
      Java 1.8.0_51 (64 bit)
    • Unconfirmed
    • (Unassigned)

      Attached Files:

      • Log outputs
      • Full datapack (no errors)

      Issue:

      When creating a world with custom features in a datapack, the world fails to load with the following fatal exception (variations on the hex at the end depending on file name/data): (see log.txt/log4.txt for more log information)

      java.lang.IllegalArgumentException: value already present: cio@4b74a4d

      To recreate:

      Simply add a json error into a configured feature file to recreate this issue.

      Solution:

      The exception above is caused by a configured feature file. For example, if I misspell something (like "bolished_pasalt") in the file, the above error (or similar) will appear. This is different from the custom biomes or worldgen settings, which will output an error telling me what is wrong in the json (example: key Name missing from dict). Fixing the json will get rid of the exception.

      Fix:

      I believe the fix for this issue would be implementing error handling for the configured features. For some reason they aren't getting the same error handling as the rest of the files.

      I have seen other open issues with this problem but I don't think they
      know the reason why the issue is occurring. I added this issue to hopefully offer a solution.

        1. err_dimensions-1.zip
          13 kB
        2. log.txt
          8 kB
        3. log4.txt
          47 kB

            Unassigned Unassigned
            reelru Ella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: