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

Wither rose items created by a withered mob do not have a pickup delay

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w10a, 1.21, 1.21.1, 24w40a
    • None
    • Confirmed
    • Items, Mob behaviour
    • Low
    • Gameplay

      When a mob dies to a wither, a wither rose will spawn. If this wither rose cannot be placed as a block where the mob dies, then it will drop as an item. However, the item entity created in this instance will not have an associated pickup delay. This behavior differs from the other loot dropped by the mob and the wither flower if it was broken, which both have a pickup delay of 10. The gameplay effect is that the wither flower will enter the player's inventory half a second before any other loot dropped by the mob.

      Code analysis (Yarn mappings)

      The LivingEntity#onKilledBy method constructs an ItemEntity instance and spawns it with the ModifiableWorld#spawnEntity method but never calls the ItemEntity#setToDefaultPickupDelay method which would give the item a pickup delay of 10.

            Unassigned Unassigned
            haykam haykam
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: