mojira.dev
MC-3591

Cured zombie villagers don't drop picked up items

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

  1. Summon a zombie villager that can pick up items

    /summon minecraft:zombie_villager ~ ~ ~ {CanPickUpLoot:1b}
  2. Give an item to the zombie villager

  3. 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

Comments 7

Confirmed.

Emile de Freitas

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.

Michael Plantz

I was able to reproduce this by both accidnet and then again I watched the zombie change and the item disappeared.

Confirmed for 1.13.1.

It happened to me in 1.15.1

Same issue in 1.16.1

If this issue continues to occur, please create a new ticket, and we will link it to this one.

CubeTheThird

migrated

Confirmed

Important

Mob behaviour

armor, cure, drop, item, villager, zombie_villager

Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, ..., Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w11b, Minecraft 19w12b, 1.14.4

19w45a

Retrieved