mojira.dev
MC-206443

Zombies do not put on armour

It seems that zombies do not want to put on armour when it is dropped at them. Villager zombies do seem to pick them up

Comments 5

All zombies and zombie villagers have an NBT tag called CanPickUpLoot. If it is 1, the zombie can pick up dropped items and armor. If it is 0, it can't pick up anything. If you really want to put armor on a zombie try using a dispenser to dispense armor on it.

I have tried on many newly spawned zombies and none picked up any armour or tool/weapon whereas zombie villagers did pick them up. I would assume then these zombies spawned in all with CanPickUpLoot=0 which may or may not be a bug, but certainly something I have not experienced in previous versions and I use this technique a lot to prevent despawning if I do not have a name tag at hand

Edit: they did pick up things like rotten flash dropped by other zombies only armour and tools thrown by me were not picked up. They also picked up my things if I died only not when thrown at or in front of them them

I think that has happened to me before. Have you tried setting a zombie with CanPickUpLoot set to1 via a command?

You get a zombie, name it anything, and type in this command.

/data modify @e[type=zombie,name=TheZombiesName] CanPickUpLoot set value 1

I normally play survival so I did not find or test this issue in creative but I can try to replicate it

FYI I just tried in new snapshot 20w49a with a zombie that previously was unwilling to pick up my stuff - now did pick up my sword

also newly spawned zombie picked it up so either this was not an issue in the first place or got mended for this release 🙂

Csaba Kiss

(Unassigned)

Unconfirmed

(Unassigned)

20w46a, 20w48a

Retrieved