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
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},{}]}
Kill the husk with a sword
✔ The husk always drops its helmet and sword. You can repeat this as often as you want
Run that command again
Kill the husk with
/kill
, or let it die on magma blocks, through fire, or through other means❌ The husk won't drop its gear
Video
[media]Linked issues
relates to 2
Attachments
Comments 9
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.
This is how it's supposed to be.