mojira.dev
MC-303908

Charging with a spear in the off hand still applies the effects from some enchantments on the item held in the main hand

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:

  1. Give yourself a spear and another weapon enchanted with one of the above enchantments.

  2. Hold the spear in your off hand.

  3. Summon a mob that would be affected by the enchantment you chose.

  4. Charge at it with the spear in your off hand.

Linked issues

Attachments

Comments 3

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.

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 

nahwdym

(Unassigned)

Confirmed

Expansion A

Important

Combat, Enchantments

25w44a

Retrieved