Mobs that can pick up weapons(e.g., zombies) prioritizes weapons based exclusively on their base attack damage. This causes the new weapon Spear to be severely undervalued, as its damage values (Wooden:1, Stone:2, Copper:2, Iron:3, Golden:1, Diamond:4, Netherite:5) are lower than many common alternatives.
As a result, mobs will often abandon a spear in favor of a sword with slightly higher damage, even if the spear is made of a superior material (e.g., dropping an Iron Spear to pick up a Wooden Sword).
Precedent & Suggested Solution:
This is not a new type of issue.Piglins had an identical problem where they would not prioritize the Golden Spear. The fix was to explicitly set the Golden Spear as their "preferred weapon", overriding simple damage comparison.
A similar fix should be applied:Spears as a weapon class should be given a higher inherent priority in the mob weapon selection AI, so that mobs value them appropriately and do not readily replace them with marginally higher-damage swords.
Steps to Reproduce:
Spawn a zombie capable of picking up items.Use the following command:
/summon zombie ~ ~ ~ {CanPickUpLoot:1}Throw an iron spear to the zombie.
Throw a wooden sword to the zombie.
Observe which weapon the zombie chooses.
Expected Result:
A mob holding a spear,which can grant it a powerful charged attack, should not readily swap it for a weapon that offers only a trivial increase in base damage.
Observed Result:
Due to simplistic damage-based logic in the AI,the mob discards the functionally superior spear for a marginally higher-damage sword.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki