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

Mobs can drop 0 durability items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w09a, Minecraft 1.14.2, 1.14.4, 1.15, 1.15.2, 20w06a, 20w11a, 20w13b, 20w20b, 1.16.1, 20w29a, 1.16.2, 1.16.3, 1.17.1 Pre-release 1
    • None
    • Confirmed
    • Survival
    • Loot tables

      The bug

      When killing a mob which can drop weapons, tools or armor, the dropped item is randomly damaged. Rarely the remaining durability of the item is 0, however that durability is not valid anymore, see MC-120664. Normally in Survival the lowest possible durability is 1, after that the item breaks.
      Therefore mobs should also drop items with a durability of at least 1.

      How to reproduce

      1. Enchant a sword with looting (and optionally sharpness)
      2. Kill multiple zombified piglins
      3. Pick up their dropped golden swords
        Some of them have a durability of 0

        1. image-2021-04-26-19-26-34-855.png
          image-2021-04-26-19-26-34-855.png
          342 kB
        2. image-2021-04-26-19-26-03-748.png
          image-2021-04-26-19-26-03-748.png
          341 kB
        3. image-2021-04-26-19-19-55-775.png
          image-2021-04-26-19-19-55-775.png
          364 kB
        4. image-2021-04-26-19-19-55-574.png
          image-2021-04-26-19-19-55-574.png
          371 kB
        5. image-2021-04-26-19-19-55-379.png
          image-2021-04-26-19-19-55-379.png
          370 kB
        6. image-2021-04-26-19-19-55-168.png
          image-2021-04-26-19-19-55-168.png
          362 kB
        7. image-2021-04-26-19-19-54-650.png
          image-2021-04-26-19-19-54-650.png
          306 kB
        8. image-2020-06-30-17-19-21-765.png
          image-2020-06-30-17-19-21-765.png
          528 kB
        9. image-2020-04-01-13-51-25-969.png
          image-2020-04-01-13-51-25-969.png
          349 kB
        10. 2021-04-26_19.21.10.png
          2021-04-26_19.21.10.png
          341 kB
        11. 2019-11-15_21.11.58 (2).png
          2019-11-15_21.11.58 (2).png
          508 kB
        12. 2018-08-23_14.35.29.png
          2018-08-23_14.35.29.png
          232 kB
        13. 2018-08-23_14.35.23.png
          2018-08-23_14.35.23.png
          233 kB
        14. 2018-08-23_14.20.19.png
          2018-08-23_14.20.19.png
          244 kB

            Unassigned Unassigned
            squindows squindows
            Votes:
            27 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: