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

Crash when table_bonus loot condition has empty chances list

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 2
    • 1.20.4, 24w11a
    • None
    • Plausible
    • Crash, Data Packs
    • Important
    • Platform

      Summary
      table_bonus loot condition does not validate that chances list has an entry. When that list is empty, testing the loot condition triggers an error or (in case of an explosion) a crash.

      Steps to Reproduce

      1. Add the attached data pack. (Works with both 1.20.4 and 24w11a.)
      2. Explode a stone block with TNT.

      Expected Result
      The game does not crash.

      Actual Result
      The game crashes.

            slicedlime [Mojang] slicedlime
            apple502j apple502j
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: