mojira.dev
MC-150195

Mobs never drop their gear unless killed by the player

The bug

Mobs never drop their armor or tools/weapons they are holding in their hands, unless they are killed by the player. They will only drop their tools/weapons if the player has the last hit on the mob.

This is probably working as intended. However, MC-99255 has been fixed, causing experience points and gear to be dropped even without player interaction in some cases.

To reproduce

  1. Run

    /summon husk ~ ~ ~ {ArmorDropChances:[0.0f,0.0f,0.0f,1.0f],ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",Count:1b}],HandDropChances:[1.0f,0.0f],HandItems:[{id:"minecraft:iron_sword",Count:1b},{}]}
  2. Kill the husk with a sword

  3. ✔ The husk always drops its helmet and sword. You can repeat this as often as you want

  4. Run that command again

  5. Kill the husk with /kill, or let it die on magma blocks, through fire, or through other means

  6. ❌ The husk won't drop its gear

Video

[media]

Linked issues

Attachments

Comments 9

This is how it's supposed to be.

No it is not. If the loot table says to drop it 100% of the time, then no matter how the entity is killed (except the void) should always cause that entity to drop the equipment. Certainly a bug here.

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w05a.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

violine1101

migrated

Confirmed

Important

Loot tables

mojang_internal_1

Minecraft 1.13.2, Minecraft 1.14, Minecraft 1.14.3 Pre-Release 3, 1.15 Pre-release 6, 1.15.1, ..., 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b

Retrieved