mojira.dev
MC-284

Mobs are difficult to hit with sword without them getting a hit first

Expected behavior:

Swinging a sword will give a good chance to hit the mob before the mob hits you.

Actual behavior:

More often than not, the mob will get the first hit. Seems to happens especially with spiders, but happens with other mobs too.

Steps to reproduce:

1. Spawn a bunch of mobs
2. Try to hit them without getting hit first

Linked issues

Comments 10

I experienced something very similar to this in the 1.4.2 pre-update.
However when I struck them with a weakness potion I wasn't able to hit the mobs at all until the potion effect wore off.
I think this is more than a "minor" problem though.

this happens the worst with large slimes and magma cubes, they hit us like 4 or 5 times before we can hit them back.

This has happened to me, it is more of a problem with slimes though. I think mojang messed up the hitboxes on big slimes during an update because now they are merely impossible to hit

Didn't try slimes, the only mob I haven't had problems with is the skeleton.

I've had this problem with spiders, zombies, endermen, slimes, magma cubes, etc. Anything with a melee attack. It seems like they have real long arms. 🙂

Problem with client-side prediction

Acknowledged as problem with client side prediction but closed as wontfix? Unless I'm missing something, that means we'll have to live with it for the time being.

I think the "client-side prediction problem" is your lack of sword skill.

@Robby Lee - Seeing how it's Jeb's comment, I'm going to say he has been playing much longer than you.

I have noticed this recently too, and does seem to be a prediction issue as the only way it seems, to get in the first hit, is to strafe. Since the motion of the mob is predicted on the client side, any change in momentum will require an update. More noticeable on remote servers when attempting to attack the mob in a straight forward/back movement. Side-to-side seems to have a higher avoidance rate as the client has not received information that the mob is facing a different direction, or the momentum has changed until the next packet is received.

@Robby Lee - I admit I am no great expert at Minecraft combat, but I've heard this complaint many times from others and witnessed such problems in many LPs. It seems to have started with the SMP/SSP merge. It used to be easy to time attacks in SSP and hard in SMP. Now it's hard in both.

Carey Tilden

(Unassigned)

Unconfirmed

Minecraft 1.4.2

Retrieved