[PR #6647] [MERGED] Wind bursts push firework rockets and thrown tridents #7010

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

📋 Pull Request Information

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

Base: main ← Head: fix/blast-wind-remaining


📝 Commits (2)

  • d3c7a96 Wind bursts push firework rockets and thrown tridents
  • 4aa12eb Merge remote-tracking branch 'origin/main' into fix/blast-wind-remaining

📊 Changes

3 files changed (+81 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/remote_projectiles.rs (+4 -1)
📝 crates/horizon-client/src/game/wind.rs (+29 -0)
📝 tools/lan_e2e.py (+48 -0)

📄 Description

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

What and why

A wind burst (wind charge, breeze charge, mace smash) now pushes firework rockets and thrown tridents. Before, wind_knockback pushed mobs, stands, arrows and other projectiles, TNT, orbs, falling blocks, boats and minecarts, but left rockets and tridents hanging. A trident stuck in the ground is left alone, as an arrow is. simulation now also lists rockets, and the motion of tridents.

Fixes #6646

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

ServerExplosion.hurtEntities runs Entity.pushFromExplosion on every entity in reach that does not ignoreExplosion; neither FireworkRocketEntity nor ThrownTrident overrides it. Checked by running one scene on the real 26.3 server (tick freeze, wind charge into the floor, tick step 1 x3): rockets and thrown tridents, splash and lingering potions, pearls, snowballs, bottles, arrows and falling blocks all moved.

Test

python3 tools/lan_e2e.py --check wind-remaining: a rocket 0.8 blocks west of the burst and a trident 0.8 east, 1.0 above a bedrock floor, ticks frozen. It fails with the wind.rs change reverted (rocket Motion stays (0, 0.12, 0)) and passes with it.

Numbers

Rocket Motion on the three ticks after the burst, real server vs Horizon:

  • x: -0.31737276, -0.36497867, -0.41972547 vs -0.31737276, -0.36497868, -0.41972548
  • y: 0.59705093, 0.63705093, 0.67705093 vs 0.59705093, 0.63705093, 0.67705093

What was not compared

  • Trident: Horizon pushes it away from the burst, but a summoned trident here ignores NoGravity and falls before the burst, so its numbers are not comparable with the real server (vanilla first-tick Motion (0.446, 0.490, 0) with NoGravity; Horizon (0.525, 0.331, 0)).
  • Thrown splash and lingering potions: the real server pushes them, but a command-summoned potion never joins Horizon's world, so I could not place one; not changed.
  • Fishing hooks: not summonable on the real server (no player), so there is no vanilla number; not changed.
  • Explosions (TNT): rockets and tridents were already pushed; not rerun here.

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 4bc8e359c, 6 min 25 s)

Check Result
Scope ✅ 4 files, +81 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 598 passed (47 s)
rustfmt ✅ (10 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 ✅ (2 min 43 s)
tests: horizon-client ✅ 593 passed (2 min 33 s)
doc tests ✅ 0 passed (3 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 ➖ 320 affected, to run in CI (--quick): armor_stand_frost, arrow, arrow_wind_charge, block_removal, boat_authority, boat_paddle_reset, boat_submerged, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask and 308 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/6647 **Author:** [@HrafnaValkyrja](https://github.com/HrafnaValkyrja) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/blast-wind-remaining` --- ### 📝 Commits (2) - [`d3c7a96`](https://github.com/horizon-rust/horizon/commit/d3c7a961e83ede7a1923977f3e22887c55206331) Wind bursts push firework rockets and thrown tridents - [`4aa12eb`](https://github.com/horizon-rust/horizon/commit/4aa12eb27f66e120d3e1a715f8f9e2452888dd9b) Merge remote-tracking branch 'origin/main' into fix/blast-wind-remaining ### 📊 Changes **3 files changed** (+81 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+4 -1) 📝 `crates/horizon-client/src/game/wind.rs` (+29 -0) 📝 `tools/lan_e2e.py` (+48 -0) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. ## What and why A wind burst (wind charge, breeze charge, mace smash) now pushes firework rockets and thrown tridents. Before, `wind_knockback` pushed mobs, stands, arrows and other projectiles, TNT, orbs, falling blocks, boats and minecarts, but left rockets and tridents hanging. A trident stuck in the ground is left alone, as an arrow is. `simulation` now also lists rockets, and the motion of tridents. Fixes #6646 ## 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 `ServerExplosion.hurtEntities` runs `Entity.pushFromExplosion` on every entity in reach that does not `ignoreExplosion`; neither `FireworkRocketEntity` nor `ThrownTrident` overrides it. Checked by running one scene on the real 26.3 server (`tick freeze`, wind charge into the floor, `tick step 1` x3): rockets and thrown tridents, splash and lingering potions, pearls, snowballs, bottles, arrows and falling blocks all moved. ## Test `python3 tools/lan_e2e.py --check wind-remaining`: a rocket 0.8 blocks west of the burst and a trident 0.8 east, 1.0 above a bedrock floor, ticks frozen. It fails with the wind.rs change reverted (rocket Motion stays (0, 0.12, 0)) and passes with it. ## Numbers Rocket Motion on the three ticks after the burst, real server vs Horizon: - x: -0.31737276, -0.36497867, -0.41972547 vs -0.31737276, -0.36497868, -0.41972548 - y: 0.59705093, 0.63705093, 0.67705093 vs 0.59705093, 0.63705093, 0.67705093 ## What was not compared - Trident: Horizon pushes it away from the burst, but a summoned trident here ignores `NoGravity` and falls before the burst, so its numbers are not comparable with the real server (vanilla first-tick Motion (0.446, 0.490, 0) with NoGravity; Horizon (0.525, 0.331, 0)). - Thrown splash and lingering potions: the real server pushes them, but a command-summoned potion never joins Horizon's world, so I could not place one; not changed. - Fishing hooks: not summonable on the real server (no player), so there is no vanilla number; not changed. - Explosions (TNT): rockets and tridents were already pushed; not rerun here. 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 4bc8e359c, 6 min 25 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +81 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 598 passed (47 s) | | rustfmt | ✅ (10 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 | ✅ (2 min 43 s) | | tests: horizon-client | ✅ 593 passed (2 min 33 s) | | doc tests | ✅ 0 passed (3 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 | ➖ 320 affected, to run in CI (--quick): armor_stand_frost, arrow, arrow_wind_charge, block_removal, boat_authority, boat_paddle_reset, boat_submerged, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask and 308 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:31: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#7010
No description provided.