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

Missing "rolls" in loot tables causes NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.1, 1.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Resource Packs
    • Mojang Priority:
      Low

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Misoloo Misode
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: