50aee22996
tools/test_server_knockback_parity.py runs vanilla's dedicated server and Horizon's (`--dedicated --nogui`) on one flat world and joins both with two vanilla-codec players (KnockbackClient): - Alice hits a cow and a zombie (plain, sprinting, Knockback II, critical, in the air); the game is frozen around the hit and stepped a tick at a time, and the mob's Motion and Pos over 20 ticks are compared exactly; - Alice hits Bob (the same, a shield, netherite, two hits, two sprinting hits, a mace smash, a stronger hit inside the hurt cooldown): Bob's own motion packets, Alice's and her sprint flag are compared; - a zombie hits Bob twice: his motion packets. 7 of 21 cases match on main. KNOWN lists the other 14 with their causes: the guest's server-side velocity never travels (knockback adds up from hit to hit), the server never sends a guest its own sprint flag, the extra knockback's direction uses f32 sin/cos instead of Mth's table, a hit in the hurt cooldown still knocks back, and a mace smash on a player runs none of MaceItem.hurtEnemy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>