Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.
Rust differential-testinggame-enginegamedevlinuxminecraftminecraft-javareimplementationrustvoxelvulkanwgpu
Knockback hook test: the hook sees the raw strength
Federico Tagliani3c6de1ba34c6
diff --git a/crates/horizon-client/src/game/creatures.rs b/crates/horizon-client/src/game/creatures.rsindex c03463fbf..32528b57e 100644--- a/crates/horizon-client/src/game/creatures.rs+++ b/crates/horizon-client/src/game/creatures.rs@@ -7232,8 +7232,9 @@ mod knockback_tests {assert_eq!(seen(9201), [(9201, named, made)]);// Twice the strength, direction turned around.assert_eq!(push(9202, 0.0), (0.0, 0.4, 0.8));- // After the resistance: a 0.5 resistance hands the hook half the strength.+ // Before the resistance (`LivingKnockBackEvent`): a 0.5 resistance still hands the hook+ // the raw strength, and the push that follows is halved.assert_eq!(push(9203, 0.5), (0.0, 0.2, -0.2));- assert_eq!(seen(9203)[0].2.strength, 0.2);+ assert_eq!(seen(9203)[0].2.strength, 0.4);}}