[PR #6045] [MERGED] Wind bursts push orbs, falling blocks, boats and minecarts #6622

Closed
opened 2026-11-03 06:23:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6045
Author: @HrafnaValkyrja
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/wind-pushes-all


📝 Commits (4)

  • 5f52402 Wind bursts push orbs, falling blocks, boats and minecarts
  • 5c9bc07 Merge origin/main
  • c2ea13f Merge main into #6045 (lan_e2e: wind-bystanders beside boat_submerged)
  • f4283f7 Merge main into #6045 (lan_e2e: wind-bystanders beside lightning-box)

📊 Changes

4 files changed (+175 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/agent.rs (+1 -1)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+7 -1)
📝 crates/horizon-client/src/game/wind.rs (+99 -0)
📝 tools/lan_e2e.py (+68 -0)

📄 Description

🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself.

What and why

wind_knockback (crates/horizon-client/src/game/wind.rs) pushed only the player, mobs, armor stands, projectiles and TNT.
Vanilla ServerExplosion.hurtEntities runs Entity.pushFromExplosion on every entity in reach that does not ignoreExplosion.
Now also pushed: experience orbs, falling blocks, boats, minecarts; dropped items only when the burst affects block-like entities (a mace smash).

Fixes #6044

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference (rea_vanilla.py, server-game, bytecode)

  • ServerExplosion.hurtEntities: distance from feet / (2*radius), direction from eye position (feet for primed TNT), power (1-d)exposuremultiplier, pushFromExplosion.
  • Entity.ignoreExplosion = false; Entity.pushFromExplosion = push(impulse). No override on ExperienceOrb, FallingBlockEntity, boats, minecarts.
  • ItemEntity.ignoreExplosion: true unless explosion.shouldAffectBlocklikeEntities(); that is false for a wind charge (ServerExplosion.shouldAffectBlocklikeEntities). So the scout gap was WRONG for dropped items and a wind charge: vanilla does not push them (confirmed on the real server: item stays put). Items are pushed for a mace burst only.
  • VehicleEntity.ignoreExplosion: true when the indirect source is a Mob and mob_griefing is off (a breeze's charge leaves boats and carts alone then). Implemented.

Test

tools/lan_e2e.py --check wind-bystanders (two real games): bedrock floor, tick freeze, a wind charge into the floor, one orb, falling sand, boat, minecart and dropped item around it, tick step 1 x4. Fails with wind.rs reverted ("the orb was not pushed away"), passes with the fix. To observe, simulation now also lists boats/minecarts and falling-block velocity, entities gives an orb's velocity.

Vanilla vs Horizon (same scene, real 26.3 server, tick freeze/step; positions relative to scene origin, y above floor)

kind vanilla after 2/3/4 ticks (x,y,z) Horizon
boat z 1.8986 / 2.2573 / 2.5802, y .1676 / .2952 / .3828 identical to 4 decimals
minecart z -0.7 / -0.89 / -1.0705, y .0935 / .1423 / .1487 identical
falling sand per-tick motion x -0.6088 / -0.5966 / -0.5847, y .4079 / .3998 / .3918 per-tick step -0.6089 / -0.5966 / -0.5847, y same to 4 d.p.
orb motion (0.70251, 0.07839, 0) velocity (0.70250, 0.07837, 0)
item not moved (Motion 0) not moved
Boat eye height is the full 0.5625 (0.85*height gave a wrong y); found by comparing, fixed.

Not compared / unverified

  • Falling block position runs one tick ahead of vanilla after the burst (impulse equal): entity tick order within a tick, not the push.
  • Orb position not compared (the client copy does not refresh while ticks are frozen); velocity only.
  • Mace burst pushing items, breeze with mob_griefing off, creative-flying etc.: implemented from the bytecode, not run against vanilla.
  • Hooks, tridents, rockets still not pushed (not in this change).

Proved by script against the real 26.3 server; no human played this change.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on Valhalla, against origin/main at c05ef84a5, 4 min 29 s)

Check Result
Scope ✅ 5 files, +175 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 525 passed (58 s)
rustfmt ✅ (11 s)
Rust ⚠️ 1.98.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with rustup update
clippy ✅ (30 s)
tests: horizon-client ✅ 1713 passed (2 min 45 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 319 affected, to run in CI (--quick): block_removal, boat_paddle_reset, bulk_section, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask, cauldron, cave_carver, chat_screen, chest_pair and 307 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code

https://claude.ai/code/session_018zuDTsnyHkP28bzn3u7S3m


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6045 **Author:** [@HrafnaValkyrja](https://github.com/HrafnaValkyrja) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/wind-pushes-all` --- ### 📝 Commits (4) - [`5f52402`](https://github.com/horizon-rust/horizon/commit/5f52402370f3fd1010d7d4e099314bce96d2c566) Wind bursts push orbs, falling blocks, boats and minecarts - [`5c9bc07`](https://github.com/horizon-rust/horizon/commit/5c9bc076acebf6e5b4a36991fb50379a7a985b7e) Merge origin/main - [`c2ea13f`](https://github.com/horizon-rust/horizon/commit/c2ea13fc7cde13893c4c3913feecd0e8a79ca9bc) Merge main into #6045 (lan_e2e: wind-bystanders beside boat_submerged) - [`f4283f7`](https://github.com/horizon-rust/horizon/commit/f4283f7c82287ef4098f6575c56027427dfc7911) Merge main into #6045 (lan_e2e: wind-bystanders beside lightning-box) ### 📊 Changes **4 files changed** (+175 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/agent.rs` (+1 -1) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+7 -1) 📝 `crates/horizon-client/src/game/wind.rs` (+99 -0) 📝 `tools/lan_e2e.py` (+68 -0) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. ## What and why `wind_knockback` (crates/horizon-client/src/game/wind.rs) pushed only the player, mobs, armor stands, projectiles and TNT. Vanilla `ServerExplosion.hurtEntities` runs `Entity.pushFromExplosion` on every entity in reach that does not `ignoreExplosion`. Now also pushed: experience orbs, falling blocks, boats, minecarts; dropped items only when the burst affects block-like entities (a mace smash). Fixes #6044 ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference (rea_vanilla.py, server-game, bytecode) - ServerExplosion.hurtEntities: distance from feet / (2*radius), direction from eye position (feet for primed TNT), power (1-d)*exposure*multiplier, `pushFromExplosion`. - Entity.ignoreExplosion = false; Entity.pushFromExplosion = push(impulse). No override on ExperienceOrb, FallingBlockEntity, boats, minecarts. - ItemEntity.ignoreExplosion: true unless `explosion.shouldAffectBlocklikeEntities()`; that is false for a wind charge (`ServerExplosion.shouldAffectBlocklikeEntities`). So the scout gap was WRONG for dropped items and a wind charge: vanilla does not push them (confirmed on the real server: item stays put). Items are pushed for a mace burst only. - VehicleEntity.ignoreExplosion: true when the indirect source is a Mob and mob_griefing is off (a breeze's charge leaves boats and carts alone then). Implemented. ## Test tools/lan_e2e.py `--check wind-bystanders` (two real games): bedrock floor, `tick freeze`, a wind charge into the floor, one orb, falling sand, boat, minecart and dropped item around it, `tick step 1` x4. Fails with wind.rs reverted ("the orb was not pushed away"), passes with the fix. To observe, `simulation` now also lists boats/minecarts and falling-block velocity, `entities` gives an orb's velocity. ## Vanilla vs Horizon (same scene, real 26.3 server, tick freeze/step; positions relative to scene origin, y above floor) | kind | vanilla after 2/3/4 ticks (x,y,z) | Horizon | |---|---|---| | boat | z 1.8986 / 2.2573 / 2.5802, y .1676 / .2952 / .3828 | identical to 4 decimals | | minecart | z -0.7 / -0.89 / -1.0705, y .0935 / .1423 / .1487 | identical | | falling sand | per-tick motion x -0.6088 / -0.5966 / -0.5847, y .4079 / .3998 / .3918 | per-tick step -0.6089 / -0.5966 / -0.5847, y same to 4 d.p. | | orb | motion (0.70251, 0.07839, 0) | velocity (0.70250, 0.07837, 0) | | item | not moved (Motion 0) | not moved | Boat eye height is the full 0.5625 (0.85*height gave a wrong y); found by comparing, fixed. ## Not compared / unverified - Falling block position runs one tick ahead of vanilla after the burst (impulse equal): entity tick order within a tick, not the push. - Orb position not compared (the client copy does not refresh while ticks are frozen); velocity only. - Mace burst pushing items, breeze with mob_griefing off, creative-flying etc.: implemented from the bytecode, not run against vanilla. - Hooks, tridents, rockets still not pushed (not in this change). Proved by script against the real 26.3 server; no human played this change. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Valhalla, against origin/main at c05ef84a5, 4 min 29 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +175 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 525 passed (58 s) | | rustfmt | ✅ (11 s) | | Rust | ⚠️ 1.98.0 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | clippy | ✅ (30 s) | | tests: horizon-client | ✅ 1713 passed (2 min 45 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 319 affected, to run in CI (--quick): block_removal, boat_paddle_reset, bulk_section, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask, cauldron, cave_carver, chat_screen, chest_pair and 307 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018zuDTsnyHkP28bzn3u7S3m --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:56 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6622
No description provided.