mojira.dev
MC-249011

Sweeping effect of swords hits animals you tamed even if not directly targeted

Title says it all, say you are in your house and a zombie got in and is above your bed, with you cat on it. trying to hit the zombie on the bed with the cat on the bed can have the sweeping effect hit and kill the cat even if you only targeted the zombie, I would suggest not hitting neutral mobs as well in the fix (dont sweep piglins if they arent already hostile to you, same with iron golems, maybe villagers, wolves, possibly players if you hit a mob, ect)

Comments 2

Thank you for your report!
We're tracking this issue in MC-94772, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

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
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

f f f f

(Unassigned)

Unconfirmed

(Unassigned)

1.18.2

Retrieved