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
- Use the following command
/summon husk ~ ~ ~ {CanPickUpLoot:1b,HandItems:[{id:"iron_shovel",Count:1b},{}]} - Set the mobGriefing gamerule to true if it is not already
/gamerule mobGriefing true - Throw a diamond shovel at the husk
→ It won't pick it up - 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)
2016-10-02, 08:38 AM
2021-01-25, 12:53 PM
2021-01-25, 12:53 PM
7
7
-