Mojira Archive
MC-108124

Tool holding {CanPickUpLoot:1b} mobs only pick up swords

The bug

As in the title.
Even if they are holding a wooden shovel and you give a diamond shovel, they will never pick it up. However, they will can pick up a wooden sword.

How to reproduce

  1. Use the following command
    /summon husk ~ ~ ~ {CanPickUpLoot:1b,HandItems:[{id:"iron_shovel",Count:1b},{}]}
    
  2. Set the mobGriefing gamerule to true if it is not already
    /gamerule mobGriefing true
    
  3. Throw a diamond shovel at the husk
    → It won't pick it up
  4. Throw a wooden sword at it
    → It picks it up despite the sword being weaker (4 attack damage) than the iron shovel (4.5 attack damage)

Cannot Reproduce

Roy Sajima

2016-10-02, 08:38 AM

2021-01-25, 12:53 PM

2021-01-25, 12:53 PM

7

7

Confirmed

(Unassigned)

CanPickUpLoot, mob, sword

Minecraft 16w39b - 20w46aMinecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 5, Minecraft 17w43b, Minecraft 1.13, Minecraft 1.13.1, 1.15.1, 1.15.2 Pre-release 2, 20w46a

-