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

Crash when leaving out processors in a template pool: java.lang.IllegalArgumentException: bound must be positive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w20a
    • 1.16.2
    • None
    • Plausible
    • Crash, Custom Worlds
    • Very Important

      The following template pool will crash the game.

      {
        "name": "foo",
        "fallback": "minecraft:empty",
        "elements": [
          {
            "weight": 1,
            "element": {
              "element_type": "minecraft:single_pool_element",
              "projection": "terrain_matching",
              "location": "bar"
            }
          }
        ]
      }

      The solution is to add "processors": "minecraft:empty" inside the element. Either this should be checked when parsing the file, or the property should be optional.

            slicedlime [Mojang] slicedlime
            Misoloo [Helper] Misode
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: