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

Missing "rolls" in loot tables causes NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w32a
    • 1.15.1, 1.15.2, 20w14a, 20w16a, 20w18a, 20w20b, 20w22a, 1.16 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.3
    • None
    • Confirmed
    • Loot tables, Resource Packs
    • Low
    • Platform

      How to reproduce

      1. Try to load the following loot table:
        {
          "pools": [
            {
              "entries": [
                {
                  "type": "item",
                  "name": "stone"
                }
              ]
            }
          ]
        }
        
      1. The loot table doesn't load and a NullPointerException is thrown, but luckily caught due to the fix for MC-91061.

      This not a friendly message. Either it should explain the problem, or it should treat a missing rolls parameter as "rolls": 1.

            Unassigned Unassigned
            Misoloo [Helper] Misode
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: