[PR #6649] [MERGED] Tridents and rockets go through portals #7011

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/6649
Author: @HrafnaValkyrja
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/portals-tridents-rockets


📝 Commits (3)

  • dea101a Portals carry thrown tridents and firework rockets
  • 78792c5 Merge remote-tracking branch 'origin/main' into fix/portals-tridents-rockets
  • 5651a6a Merge origin/main

📊 Changes

2 files changed (+63 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/nether_portal.rs (+56 -0)
📝 crates/horizon-client/src/game/persist.rs (+7 -2)

📄 Description

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

What and why

Thrown tridents and firework rockets ignored nether and End portals: they flew through and stayed in the dimension they were in. Vanilla sends them through like arrows, snowballs and eggs (#6465). They are now swept for portal blocks, saved with the writers from #6426, re-spawned in the other dimension, and keep their portal cooldown on arrival. A rocket that is boosting a player stays, as does a trident stuck in the ground that did not move.

Changed: crates/horizon-client/src/game/nether_portal.rs (sweep, tracking, leaving arm) and game/persist.rs (loaded tridents and rockets get an entity id and restore PortalCooldown).

Fixes #6648

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

Entity.handlePortal / Entity.canUsePortal: nothing on ThrownTrident or FireworkRocketEntity blocks portal use. Checked against the real vanilla server with the side-by-side tool.

Numbers

Scene: a trident and a rocket (Motion 0) summoned inside a built portal, 46 ticks (nether) or 48 ticks (End), then save-all flush; count of each id saved in the entities region files of each dimension.

vanilla Horizon before Horizon after
nether: trident / rocket saved in the_nether 2 / 2 missing / missing 2 / 2
End: trident saved in the_end 2 missing 2

(The "2" is the number of times the id string occurs in the chunk, the same on every side.) The End rocket is absent on both vanilla and Horizon in this scene, so it proves nothing for the End.

What wasn't compared

  • @e cannot select tridents or rockets on Horizon, so arrival timing per tick could not be probed for these two; only the final saved state was compared.
  • The arrival chunk differs from vanilla (nether region r.-1.0 on Horizon vs r.0.0 on vanilla in this scene); portal placement is unchanged by this PR.
  • No lan_e2e check added.

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, 5 min 39 s)

Check Result
Scope ✅ 2 files, +66 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 598 passed (54 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 52 s)
tests: horizon-client ✅ 593 passed (1 min 41 s)
doc tests ✅ 0 passed (2 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 ➖ not run (--quick): CI's parity job picks the affected harnesses
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/6649 **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/portals-tridents-rockets` --- ### 📝 Commits (3) - [`dea101a`](https://github.com/horizon-rust/horizon/commit/dea101aafb24e13f7b5e66ba4ea7010bd081bc7b) Portals carry thrown tridents and firework rockets - [`78792c5`](https://github.com/horizon-rust/horizon/commit/78792c54eabb2a143290e5cf8293de7524f1c3b1) Merge remote-tracking branch 'origin/main' into fix/portals-tridents-rockets - [`5651a6a`](https://github.com/horizon-rust/horizon/commit/5651a6af8d2bfd7ef8dc45d86a785ecfad615c0f) Merge origin/main ### 📊 Changes **2 files changed** (+63 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/nether_portal.rs` (+56 -0) 📝 `crates/horizon-client/src/game/persist.rs` (+7 -2) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. ## What and why Thrown tridents and firework rockets ignored nether and End portals: they flew through and stayed in the dimension they were in. Vanilla sends them through like arrows, snowballs and eggs (#6465). They are now swept for portal blocks, saved with the writers from #6426, re-spawned in the other dimension, and keep their portal cooldown on arrival. A rocket that is boosting a player stays, as does a trident stuck in the ground that did not move. Changed: `crates/horizon-client/src/game/nether_portal.rs` (sweep, tracking, leaving arm) and `game/persist.rs` (loaded tridents and rockets get an entity id and restore `PortalCooldown`). Fixes #6648 ## 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 `Entity.handlePortal` / `Entity.canUsePortal`: nothing on `ThrownTrident` or `FireworkRocketEntity` blocks portal use. Checked against the real vanilla server with the side-by-side tool. ## Numbers Scene: a trident and a rocket (Motion 0) summoned inside a built portal, 46 ticks (nether) or 48 ticks (End), then `save-all flush`; count of each id saved in the entities region files of each dimension. | | vanilla | Horizon before | Horizon after | |---|---|---|---| | nether: trident / rocket saved in the_nether | 2 / 2 | missing / missing | 2 / 2 | | End: trident saved in the_end | 2 | missing | 2 | (The "2" is the number of times the id string occurs in the chunk, the same on every side.) The End rocket is absent on both vanilla and Horizon in this scene, so it proves nothing for the End. ## What wasn't compared - `@e` cannot select tridents or rockets on Horizon, so arrival timing per tick could not be probed for these two; only the final saved state was compared. - The arrival chunk differs from vanilla (nether region r.-1.0 on Horizon vs r.0.0 on vanilla in this scene); portal placement is unchanged by this PR. - No `lan_e2e` check added. 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, 5 min 39 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +66 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 598 passed (54 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 52 s) | | tests: horizon-client | ✅ 593 passed (1 min 41 s) | | doc tests | ✅ 0 passed (2 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 | ➖ not run (--quick): CI's parity job picks the affected harnesses | | 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#7011
No description provided.