If you're holding an enchanted item (in the only vanilla applicable case, something with Bane of Arthropods) and you shoot a persistent projectile (arrow/trident) from your offhand at a susceptible mob (in this case a spider), it will apply the enchantment's onTargetDamaged method effect. In this case, will apply slowness to the spider, despite the actual weapon that has Bane of Arthropods never striking it. The weapon only needs to be simply held in the mainhand.
Note that flipping hands also works. Ie, if the enchanted weapon is in the offhand and you shoot with the mainhand. Melee attacking with anything in the mainhand while the enchanted weapon is in the offhand will also work.
I'm a modder, and discovered this when messing with some of my custom enchantments that use this method. It doesn't have very large effects in vanilla other than the single spider slowness debuff, but this will effect my mod and any other mods that add enchantments that utilize this method.
As you can see in the attached video, it applies the slowness debuff to the spider, despite the sword never striking it. The video was recorded in vanilla MC.
Linked issues
Attachments
Comments 2
Thank you for your report!
We're tracking this issue in MC-3304, 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
Duplicate of MC-3304.