The bug
A zombie villager picked up items dropped by a fellow player, specifically armor. The villager had been cured, and the armour was lost.
How to reproduce
Summon a zombie villager that can pick up items
/summon minecraft:zombie_villager ~ ~ ~ {CanPickUpLoot:1b}
Give an item to the zombie villager
Cure the zombie villager (command below for alternative, faster method)
/data merge entity @e[type=zombie_villager,limit=1,sort=nearest] {ConversionTime:1}
→ ❌ Notice the items are gone
The fix
Call the method EntityLiving.dropEquipment(wasRecentlyHit, lootingModifier)
in EntityZombieVillager.finishConversion()
.
Linked issues
is duplicated by 6
Comments 7
The same thing happened to me just now. (but I did it as a test not by accident) then when i was going to report it, i saw that you already have.
I was able to reproduce this by both accidnet and then again I watched the zombie change and the item disappeared.
Confirmed.