The bug
Enemies like Zombies and Endermen are sometimes suddenly attacking quickly 2 times in a row instead of at their normal attack-rate. (Melee attacks only as far as I know). Sometimes the attack animation or sound won't even play.
This can seemingly mess with blocking too, though it could also just be MC-100949
Code analysis
Code analysis by @unknown can be found in this comment.
Related issues
is duplicated by
relates to
Attachments
Comments


This is intentionally different to 1.15.2 due to the fixing of MC-147516, so yes, they are more likely to attack more often now. Please provide a short clip of what you think is the issue here with your F3 debug screen enabled.

I was going to mention the bug fix of MC-147516 at first because I do think it's a side effect caused by the fix, but then decided not to.
They can now attack normally without stopping due to that fix, as intended... But they can now also sometimes suddenly attack 2 times in a row out of nowhere. This unexpected inconsistency can mess with the player's blocking and expected health during the fight.
I'll try to provide a clip when I can during the 24 hours.

I made a quick video of the bug in 1.17pre2 and uploaded it here.
The zombie would usually hit me every 20 ticks or so if I was standing still, but I would get more frequent double-attacks if I pulled away right as it hit me and then immediately strafed back into it. Sometimes the time between attacks was in the single digits although this was fairly rare.

Can confirm in 1.17.1.

Yep, an issue I too am experiencing in 1.17.1 - double strikes seem to be happening a lot lately, which is especially frustrating when you are playing hardcore.
Can confirm in 1.18.1 and 22w05a.
Can confirm in 1.18.2.

In 22w14a

1.19 as well.
I love y'all Mojang, but that this is still an issue almost 2 years later is kinda really frustrating at times.
(Doesn't change how awesome y'all are ofc, don't get me wrong 😃 )
Can confirm in 1.19.2.

Also present in 1.19.3 pre-2 it seems.
OK, I STILL stand by my previous comment that I love y'all, Mojang, but seriously, this still being a thing is getting ridiculous.

In 23w33a

Confirmed in 1.20.2

STILL a problem in 24w14A.
Seriously, WHY is this still a thing FOUR YEARS LATER? 🤬
Relates to MC-131426