-
Bug
-
Resolution: Fixed
-
1.19.3, 23w04a, 23w05a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 2
-
None
-
Confirmed
-
Mob behaviour
-
Important
-
Platform
The bug
When summoning a hostile mob creature that can pick up items, if they are equipped with armor, they cannot replace the armor already equipped. They can only replace any items in their hand. All mobs that can wear armor have this problem. The previous version (1.19.2) does not have this problem.
How to reproduce
- Summon a skeleton and use data command set "CanPickUpLoot" to 1b like:
/data modify entity @e[type=minecraft:skeleton,distance=..10,limit=1] CanPickUpLoot set value 1b
- Give it basic armor, for example, leather material.
- Give it advanced armor like diamond.
- You can see it replaced its bow with advanced armor.
- If you give it a sword, it will keep picking up and replacing the items on its hand.
Expected behavior
If a mob that can pick up items picks up a type of armor that is better than what it is currently wearing, it should remove what it's wearing and put on the new better armor.
Observed behavior
If a mob that can pick up items picks up a type of armor that is better than what it is currently wearing, it will hold the better armor in its hand and continue to wear the inferior armor.