The bug
Zombies instead of picking up 1 pumpkin/skull/head pickup 64.
Piglins pick up just one. Video was recorded at 1.18.1(fabric) but I tested is as well at 1.19.2 (vanilla). Link to video showcasing it https://youtu.be/G2cDtQcpMOU
To reproduce
Summon a zombie with
CanPickUpLoot:1b
Give it a stack of pumpkins.
Observed result
The zombie will pick up the entire stack, one for its head and 63 in its inventory.
Expected result
The mob would only pick up one item.
Linked issues
Attachments
Comments 6
1.19.2 Completely Vanilla https://youtu.be/JkFnI441fdA
Skeleton only use one of the pumpkins:
[media]
My steps to reproduce:
Spawn skeleton
Modify data to allow item pickup
/data modify entity @e[type=minecraft:skeleton,limit=1,sort=nearest] CanPickUpLoot set value 1b
Give stack of pumpkins
I cannot reproduce with Skeletons, but I can still reproduce with Zombies. Edited description to reflect this.
Can confirm for:
Zombie
Skeleton
Zombified Piglin
Others are untested. This bug is backwards, I think. Zombies should be able to pick up an entire stack of carved pumpkins. Why? Because it uses one to equip on its head and the rest to go into its mainhand. The mainhand has been used as a fallback container when the desired slot is occupied. This is consistent with how a zombie with a diamond helmet will place a leather helmet into their mainhand. Helmets don't typically belong in the mainhand, but it has to be because the head slot is already occupied by a better item. It's the piglin that is bugged, not the zombies.
Your video is modified please provide a video in the vanilla environment