Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-273103

Mobs ignore the PickupDelay NBT tag on items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.6, 1.21 Pre-Release 4, 1.21
    • None
    • Windows 10
    • Community Consensus
    • Mob behaviour
    • Low
    • Platform

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

        1. javaw_4p72NZsmnK.png
          javaw_4p72NZsmnK.png
          8 kB
        2. javaw_Aqg94XshpB.png
          javaw_Aqg94XshpB.png
          415 kB
        3. javaw_QTBLzMQjO7.png
          javaw_QTBLzMQjO7.png
          27 kB
        4. javaw_tI4q6E0owJ.png
          javaw_tI4q6E0owJ.png
          32 kB

            Unassigned Unassigned
            ArsiTheFox ArsiTheFox
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: