Performing charge attacks with a spear held in the off hand still applies the effects from some enchantments present on the item held in the main hand.
Affected enchantments:
Sharpness
Smite
Bane of Arthropods
Breach
Knockback
How to reproduce:
Give yourself a spear and another weapon enchanted with one of the above enchantments.
Hold the spear in your off hand.
Summon a mob that would be affected by the enchantment you chose.
Charge at it with the spear in your off hand.
Linked issues
duplicates 1
Attachments
Comments 3
dang mod.. i didnt ask to fix attribute swapping but offhand bug where the new spear takes the enchantments of main hand… people will hate me because of you!
Hi!
Thank you for your report!
We're already tracking this issue at MC-303587, so I will resolve and link this ticket as a Duplicate.
I suggest also to browse through the main issue for potential fixes.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Duplicate of MC-28289
The attribute swapping bug cannot be “partially fixed“, since it’s an unintended behavior of the game when registering attribute modifiers in the wrong way.