7c83fbb6df
A guest's (and, on the server thread, the window's) knockback started from the velocity the last hit left on its server copy, which nothing ever slowed down, and each hit went out at once. So every hit after the first pushed harder (0.72, then 0.76 blocks a tick where vanilla sends 0.4 each time), netherite resisted from the wrong base, and a zombie's hit reached the client before the friction of the tick it landed in. Vanilla's server simulates a player too (MoveSimulationType AUTHORITATIVE_SIDE_AND_SERVER): ServerPlayer travels every tick with no input, and ServerEntity.sendChanges sends a velocity a hurt marked (Entity.markHurt) as it is after that travel. A player's melee hit is the exception (Player.causeExtraKnockback): it sends at once, then puts the server copy back to its velocity from before the hit. - MotionWorld::server_travel: Player.travel with no input, keeping only the velocity (the client's moves place the player). The server's copy checks no fall damage on its own moves (isLocalInstanceAuthoritative). - guest_server_tick runs it last, then sends the velocity if a hurt marked it since the last tick. - guest_hit_by leaves a marked velocity to that; guest_struck_by (melee from a player) sends at once and restores. - lan_e2e `knockback`: three hits each way push the victim as far each time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>