mojira.dev
MC-257290

Zombies can pick up to 64 pumpkins/skulls/heads instead of one

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

  1. Summon a zombie with CanPickUpLoot:1b

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

Your video is modified please provide a video in the vanilla environment

I wasn't able to reproduce this for wither skeletons, but can confirm for skeletons and zombies.

Skeleton only use one of the pumpkins:

[media]

My steps to reproduce:

  1. Spawn skeleton

  2. Modify data to allow item pickup

    /data modify entity @e[type=minecraft:skeleton,limit=1,sort=nearest] CanPickUpLoot set value 1b
  3. 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.

MrQuba

(Unassigned)

Confirmed

Gameplay

Normal

Mob behaviour

1.19.2, 22w44a, 1.20.4

Retrieved