-
Bug
-
Resolution: Fixed
-
24w09a, 1.21, 24w33a, 1.21.1 Release Candidate 1, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2 Pre-Release 1, 1.21.2 Pre-Release 2, 1.21.2 Pre-Release 3, 1.21.2 Pre-Release 4, 1.21.2 Pre-Release 5, 1.21.2 Release Candidate 1, 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3
-
None
-
Community Consensus
-
Mob behaviour
-
Important
-
Platform
The Bug
Mobs with CanPickUpLoot do not drop an item they are holding/wearing in favor of an enchanted item, unlike pre-1.20.5 behavior. For example, a zombie will not drop a netherite sword for a netherite sword enchanted with Sharpness. This also occurs with armor.
This bug was introduced in 24w09a.
Steps to Reproduce
- Summon a husk that can pick up loot:
/summon minecraft:husk ~ ~ ~ {CanPickUpLoot:1b}
- Throw the husk a sword.
- Once the husk has picked up the sword, throw it a sword (of the same type) enchanted with Sharpness.
- Note how the husk does not pick up the enchanted sword. 1.21.mp4
- Attempting this in 1.20.4 shows the correct behavior, where the husk prefers the enchanted sword to the unenchanted sword. 1.20.4.mp4