mojira.dev
MC-136374

Mobs can drop 0 durability items

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

Linked issues

MC-143256 Mob Spawned Items Can Result in Zero Durability Resolved MC-150458 Pillager's Crossbow Drop Resolved MC-153860 Skeleton can drop zero-durability items/armor Resolved MC-164901 0 Durability Resolved MC-166396 0 durability tools in 1.14 Resolved

Attachments

Comments 20

Also encountered this today, specifically with a bow from a skeleton. Could apply to more mobs/items, might try to check if pigmen or wither skeltons can drop 0 durability swords.

Patrick McCarthy

Since the 0 durability on items was considered to be a bug, does that mean that you could summon in or give the player an item with 0 durability? Or will the developers make the minimum one durability, like on normal items? I could check that myself I suppose.

 

Update: Just confirmed that you can

Update 2: You can also make the value negative

It can go into a minimum value of -999999967

gaspoweredpick

Confirmed for 19w09a. I killed a drowned and it dropped a trident that can't even be thrown.

Just confirmation that this still exists in 1.14.4.          

[media]
Benjamin Landry

Confirmed for 1.15.

[media]
10 more comments

@unknown Tickets that are resolved as won't fix won't get updated. So newer affected versions don't get added to them.

Can confirm for 1.16.4
A drowned dropped me a trident with 0 durability

crazymoose77756

Can confirm for 1.16.5, with chainmail armor drops from zombies

Jakob Nikolić

In 1.16.5 can pilligers and Vindicators have a chance to drop 0 durability axes and crossbows.

 

[media][media]

Everyone: This ticket was resolved as Won't Fix, and this ticket is no longer updated. That means that you should not post confirmations for new versions on this ticket.

squindows

(Unassigned)

Confirmed

Loot tables

Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w09a, Minecraft 1.14.2, 1.14.4, ..., 1.16.1, 20w29a, 1.16.2, 1.16.3, 1.17.1 Pre-release 1

Retrieved