mojira.dev
MC-191642

Inconsistent mob melee attack rate / mobs double-attacking

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

Attachments

Comments

migrated
[media][media]
galaxy_2alex

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.

migrated

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.

clamlol

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.

ampolive

Can confirm in 1.17.1.

migrated

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. 

Avoma

Can confirm in 1.18.1 and 22w05a.

Avoma

Can confirm in 1.18.2.

migrated

In 22w14a

migrated

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 😃 )

Avoma

Can confirm in 1.19.2.

migrated

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.  

migrated

In 23w33a

migrated

Confirmed in 1.20.2

migrated

STILL a problem in 24w14A.

 

Seriously, WHY is this still a thing FOUR YEARS LATER? 🤬

[Mod] Jingy

Relates to MC-131426

migrated

(Unassigned)

Confirmed

Gameplay

Important

Mob behaviour

1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, ..., 24w04a, 24w14a, 1.20.5 Pre-Release 1, 1.21.1, 24w35a

Retrieved