The slowness effect is applied to entities when the bane of arthropods enchantment is held in the off hand
The Bug:
The slowness effect is applied to entities when the bane of arthropods enchantment is held in the off hand.
For example, when you melee attack a spider while having an item enchanted with bane of arthropods in your off hand, the slowness effect is applied to the entity you attacked. This doesn't make sense because the off hand item isn't being used.
Steps to Reproduce:
- Hold a sword enchanted with bane of arthropods in your off hand by using the command provided below.
/item replace entity @s weapon.offhand with minecraft:netherite_sword[minecraft:enchantments={levels:{'minecraft:bane_of_arthropods':5}}] - Summon a spider and attack it using your main hand.
Observed Behavior:
The slowness effect is applied to entities when the bane of arthropods enchantment is held in the off hand.
Expected Behavior:
The slowness effect would only be applied to entities if the weapon used for the attack has the bane of arthropods enchantment.
Linked Issues
is duplicated by2
Created Issue:
Bane of Arthropods in off-hand effects attack
When you have an item that is enchanted with Bane of Arthropods in you off-hand and damage a spider with your main-hand weapon, Bane of Arthropod is applied to the spider.
Expected: Bane of Arthropods should only apply when it is on the weapon that is used to attack.
Environment
ingame
ingame
When you have an item that is enchanted with Bane of Arthropods in you off-hand and damage a spider with your main-hand weapon, Bane of Arthropod is applied to the spider.
Expected: Bane of Arthropods should only apply when it is on the weapon that is used to attack.
relates to
Bane of Arthropods in off-handeffects attackBane of Arthropods in off-hand affects attack
relates to
relates to
relates to
is duplicated by
Bane of Arthropods inoff-handaffects attackThe slowness effect is activated when the Bane of Arthropods enchantment is held in the offhand.
When you
have an item that isenchanted with Bane of Arthropods in you off-handand damage a spider withyour main-handweapon, Bane of Arthropod is applied to the spider.Expected
: Bane of Arthropodsshould only applywhenit is onthe weaponthat is used to attack.When you melee attack a spider, cave spider, endermite, silverfish, or bee while having an item enchanted with Bane of Arthropods in your offhand, the slowness effect is applied. This doesn't make sense because you're using your main hand to attack entities.
Expected behavior: The slowness effect should only be applied when the weapon used for the attack has the enchantment.
The slowness effect is activated when the Bane of Arthropods enchantment is held in the offhand.The slowness effect is applied when the Bane of Arthropods enchantment is held in the offhand.
When you melee attack a spider, cave spider, endermite, silverfish, or bee while having an item enchanted with Bane ofArthropodsin your offhand, the slowness effect is applied. This doesn't make sense because you're using your main hand to attack entities.
Expected behavior:The slowness effectshould only be appliedwhenthe weapon used for the attack has the enchantment.The Bug:
The slowness effect is applied to entities when the bane of arthropods enchantment is held in the off hand.
For example, when you melee attack a spider while having an item enchanted with bane of arthropods in your off hand, the slowness effect is applied to the entity you attacked. This doesn't make sense because the off hand item isn't being used.
Steps to Reproduce:
- Hold a sword enchanted with bane of arthropods in your off hand by using the command provided below.
/item replace entity @s weapon.offhand with minecraft:netherite_sword[minecraft:enchantments={levels:{'minecraft:bane_of_arthropods':5}}]- Summon a spider and attack it using your main hand.
Observed Behavior:
The slowness effect is applied to entities when the bane of arthropods enchantment is held in the off hand.
Expected Behavior:
The slowness effect would only be applied to entities if the weapon used for the attack has the bane of arthropods enchantment.
The slowness effect is applied when theBane ofArthropods enchantment is held in the offhand.The slowness effect is applied to entities when the bane of arthropods enchantment is held in the off hand
Thank you for your report!
We're tracking this issue in MC-131637, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
The same applies to Thorns. Holding an item with Thorns on it in any hand damages the attacker.
Same root cause, just a neighboring method (Enchantment.onEntityDamaged() vs Enchantment.onUserHurt()).
Confirmed for 1.13.1-pre1
Confirmed for 1.13.1
A side effect of this is that it apples the enchantments for "main hand, off hand, head, chest, legs, feet, main hand". Notice how "main hand" is doubled up here...
Not 100% sure if this duplicates MC-3304. If not, then it definitely relates to it.
The slowness effect from the enchantment is only activated when holding an item with bane of anthropods in the offhand. However, it doesn't amplify damage under these circumstances.