Enderman was suffocating while in a boat and was being attacked by a tamed wolf. The enderman, although unmoving from the boat, was teleporting out of the boat, and was successful at attacking the player.
What I expected to happen was...:
Enderman stayed in the boat while the wolf and player killed it.
What actually happened was...:
Enderman was suffocating while in a boat and was being attacked by a tamed wolf. The enderman, although unmoving from the boat, was teleporting out of the boat, and was successful at attacking the player.
Steps to Reproduce:
1. Build a platform at 3 blocks high
2. Place boat on the edge, with a tamed wolf inside the boat
3. Have Enderman enter the boat so it's suffocating
Clip:
https://www.twitch.tv/mecaone1/clip/GlamorousGiantAlfalfaCoolCat-Y04URyFEr02rVLez
Full stream starting at 19:20
https://www.twitch.tv/videos/2215804280
Here is the same bug tested again on a different world:
Linked issues
relates to
Attachments
Comments

I recently was able to reproduce this in a warped forest in the nether.
MC-273708 does seem related, but in my case the enderman attacks me.
I was running 1.21.4 on standard survival.
I also found that if I ran away the teleporting around me continued along with the attacks.
It is as if the enderman was like an invisible ninja around me doing constant attacks. If I stopped moving I died. Eventually, the enderman would suffocate and the attacks would stop.
Edit: I realized I should give more info.
I only looked at the enderman and lured into the boat specifically to suffocate it. I didn't need to attack it to be attacked.
Also, I am running Fedora KDE Plasma with X11. Hope this helps.
Would MC-273708 describe your issue?