mojira.dev
MC-273103

Mobs ignore the PickupDelay NBT tag on items

I summoned an item I used as a display because I am working on a custom Lever model.

I set the Age to: -32768 and the PickupDelay: -1

//Summon item that can't despawn or be picked up
/summon item ~ ~ ~ {Item:{id:"lever",Count:1},Age:-32768,PickupDelay:-1,Tags:[LEV]}

//Summon entity to pickup the item
/summon zombie ~ ~ ~ {CanPickUpLoot:1}

The item is unable to be picked up by any player but when a mob steps over it with the CanPickUpLoot tag set to 1 ... it gets immediately picked up by the mob...

Linked issues

Attachments

Comments 3

Can confirm, might be working as intended since setting the gamerule mobGriefing to true prevents the mob from picking up the item. Related to MC-49302 ?

@Bansed PickupDelay should always be the alotted amount of time left for an entity to pickup the item even with mobGriefing set to false.

Mobs should not be able to touch the item until that timer has lifted

Can confirm on 1.21.4

ArsiTheFox

(Unassigned)

Community Consensus

Platform

Low

Mob behaviour

1.20.6, 1.21 Pre-Release 4, 1.21

Retrieved