9d9f259f94
Player.attack adds causeExtraKnockback after the hurt: the weapon's knockback enchantment (halved) plus 0.5 for a sprinting full-strength hit, pushed along the attacker's yaw (sin, -cos) rather than away from it, which lets a player steer a hit target by turning while attacking (knockback displacement). Horizon had only the enchantment part, on mobs; sprinting hits added nothing and players (LAN PvP) got no extra knockback at all. Now: - player hits on mobs and players: one extra knockback of that strength with LivingEntity.knockback (knockback resistance, lift only from the ground), the attack.knockback sound, and the attacker's sprint stops; - the knockback a player takes (mob and PvP hits, dealDefaultKnockback with 0.4) reads its knockback resistance (netherite) and only lifts from the ground: an airborne player kept being thrown up by every hit. Fixes #504 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>