-
Bug
-
Resolution: Fixed
-
1.16.1, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 2, 1.16.4, 20w45a, 20w51a, 21w03a, 1.16.5, 21w08b, 1.17, 1.19.2, 1.19.4 Pre-release 1, 1.19.4, 1.20.1, 1.20.4
-
None
-
Confirmed
-
Mob behaviour
-
Low
-
Gameplay
The bug
Mobs with CanPickUpLoot:1b do not have distinct rules for when to pick up items. Instead they constantly switch an undamaged item with a damaged item of the same type with additional NBT (e.g. enchantments, custom name, ...).
This is a clone of MC-113131, however it appears there were some versions including 1.15.2 where mobs did not prefer items with NBT. This might have been fixed by MC-174359.
The code analysis of MC-113131 is likely still relevant.
Results on a survival: https://www.reddit.com/r/Minecraft/comments/iao4p3/i_just_finished_afking_at_my_new_gold_farm_when_i/
Example videos:
How to reproduce
- Summon a mob which can pick up items
/summon husk ~ ~ ~ {CanPickUpLoot:1b}
- Set the mobGriefing gamerule to true if it is not already
/gamerule mobGriefing true
- Throw an undamaged chestplate at the mob
/give @p diamond_chestplate
- Throw a damaged chestplate (with NBT) at the mob
/give @p diamond_chestplate{Enchantments:[{id:unbreaking,lvl:1s}],Damage:1}
→ The mob constantly swaps the items
- clones
-
MC-113131 Mob item pick up behavior is not distinct resulting in mobs constantly dropping and picking up items
- Resolved
- is duplicated by
-
MC-162664 Sword Juggler (a mob doing an endless pickup of equal weapons instead of better ones)
- Resolved
-
MC-194287 Zombiefied piglins picks up golden swords
- Resolved
-
MC-195288 Zombie wearing armor on ground repeatedly
- Resolved
-
MC-196386 skelly picking up bows over and over like the pigmen do with the swords
- Resolved
-
MC-200483 Zombie Piglins will excessively pick up swords
- Resolved
-
MC-211558 Piglins or mobs that CanPickUpLoot continuously swap out their diamond armor/ weapons
- Resolved
- relates to
-
MC-260839 Mobs can replace weapons held in their main hand with armor
- Resolved
-
MC-259259 Hostile mobs can't replace armor they're wearing with better armor
- Resolved