[PR #5914] [MERGED] Tridents, rockets and fishing hooks press plates and trip tripwires #6557

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

📋 Pull Request Information

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

Base: main ← Head: fix/plate-trident-rocket-hook


📝 Commits (1)

  • 055ce50 Tridents, rockets and fishing hooks press plates and trip tripwires

📊 Changes

6 files changed (+133 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+31 -1)
📝 crates/horizon-client/src/game/fireworks.rs (+12 -0)
📝 crates/horizon-client/src/game/fishing.rs (+10 -0)
📝 crates/horizon-client/src/game/lan_mobs.rs (+14 -0)
📝 crates/horizon-client/src/game/server_travel.rs (+16 -0)
📝 tools/lan_e2e.py (+50 -2)

📄 Description

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

What and why

A thrown trident, a fishing bobber and a flying firework rocket didn't press wooden pressure plates. They live in their own lists, and GameLevel::count_entities never saw them. They now count there, as vanilla's entity query does.

  • A rocket boosting a player and a hook on an entity count on a plate but don't reach entityInside, because their ticks skip applyEffectsFromBlocks.
  • A trident reaches entityInside once, through the sweep tick_blocks already had.
  • A guest's hook now ends when the guest changes level, in both start_server_trip and run_level_teleports. It lives on the guest here, so without this it would press plates in the level the guest arrives in. In vanilla the hook stays behind in the old level, so this differs on purpose.

Fixes #5896

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

BasePressurePlateBlock.getEntityCount and TripWireBlock (only Entity.isIgnoringBlockTriggers excludes an entity), FishingHook.tick, FireworkRocketEntity.tick, AbstractArrow.tick (applyEffectsFromBlocks), read with javap on the pinned jar.

Test: new plate-projectiles check in tools/lan_e2e.py, on two real games: a guest's thrown trident, its bobber and a rocket press wooden plates, and a thrown trident leaves a stone plate up. It passes locally with this change: {'rocket': 'true', 'bobber': 1, 'trident': 2, 'stone': 0}. I didn't run it on the unfixed code; the bug itself was reproduced by hand before the fix.

Not tested end to end: tripwires, which use the same count. Valkyrie also confirmed all three on plates by hand in game, on an earlier version of this change. In the check, a /summoned trident didn't press a plate, while a thrown one did, so that check throws it for real. I didn't look into why, and it may be a separate gap.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on Valhalla, against origin/main at 9543d2a68, 2 min 35 s)

Check Result
Scope ✅ 8 files, +134 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 515 passed (26 s)
rustfmt ✅ (6 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 ✅
tests: horizon-client ✅ 1678 passed (2 min 0 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/5914 **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/plate-trident-rocket-hook` --- ### 📝 Commits (1) - [`055ce50`](https://github.com/horizon-rust/horizon/commit/055ce500a02ff6be1e51367035ce519d0999680c) Tridents, rockets and fishing hooks press plates and trip tripwires ### 📊 Changes **6 files changed** (+133 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+31 -1) 📝 `crates/horizon-client/src/game/fireworks.rs` (+12 -0) 📝 `crates/horizon-client/src/game/fishing.rs` (+10 -0) 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+14 -0) 📝 `crates/horizon-client/src/game/server_travel.rs` (+16 -0) 📝 `tools/lan_e2e.py` (+50 -2) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. ## What and why A thrown trident, a fishing bobber and a flying firework rocket didn't press wooden pressure plates. They live in their own lists, and `GameLevel::count_entities` never saw them. They now count there, as vanilla's entity query does. - A rocket boosting a player and a hook on an entity count on a plate but don't reach `entityInside`, because their ticks skip `applyEffectsFromBlocks`. - A trident reaches `entityInside` once, through the sweep `tick_blocks` already had. - A guest's hook now ends when the guest changes level, in both `start_server_trip` and `run_level_teleports`. It lives on the guest here, so without this it would press plates in the level the guest arrives in. In vanilla the hook stays behind in the old level, so this differs on purpose. Fixes #5896 ## 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 `BasePressurePlateBlock.getEntityCount` and `TripWireBlock` (only `Entity.isIgnoringBlockTriggers` excludes an entity), `FishingHook.tick`, `FireworkRocketEntity.tick`, `AbstractArrow.tick` (`applyEffectsFromBlocks`), read with `javap` on the pinned jar. Test: new `plate-projectiles` check in `tools/lan_e2e.py`, on two real games: a guest's thrown trident, its bobber and a rocket press wooden plates, and a thrown trident leaves a stone plate up. It passes locally with this change: `{'rocket': 'true', 'bobber': 1, 'trident': 2, 'stone': 0}`. I didn't run it on the unfixed code; the bug itself was reproduced by hand before the fix. Not tested end to end: tripwires, which use the same count. Valkyrie also confirmed all three on plates by hand in game, on an earlier version of this change. In the check, a `/summon`ed trident didn't press a plate, while a thrown one did, so that check throws it for real. I didn't look into why, and it may be a separate gap. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Valhalla, against origin/main at 9543d2a68, 2 min 35 s) | Check | Result | | --- | --- | | Scope | ✅ 8 files, +134 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 515 passed (26 s) | | rustfmt | ✅ (6 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 | ✅ | | tests: horizon-client | ✅ 1678 passed (2 min 0 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:22:59 +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#6557
No description provided.