[PR #7799] Tilt big dripleaves fully on projectile hits #7830

Open
opened 2026-11-03 07:25:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7799
Author: @TheMrZZ
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/h115-dripleaf-projectiles


📝 Commits (1)

  • 1c5777a Tilt big dripleaves fully when projectiles hit

📊 Changes

5 files changed (+191 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+5 -0)
📝 crates/horizon-world/src/level/hooks.rs (+23 -0)
📝 crates/horizon-world/src/level/mod.rs (+10 -0)
📝 tools/port_map/game2-012.tsv (+2 -1)
➕ tools/test_dripleaf_projectiles_parity.py (+151 -0)

📄 Description

🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

What and why

Projectile hits currently leave big dripleaves at NONE. Route the shared projectile block-hit handler through the dripleaf behavior so a hit sets FULL immediately and schedules the existing reset after 100 ticks, including for powered leaves. Fixes #7767.

Add a fresh dedicated-server regression with arrow, snowball, ender-pearl, powered-arrow and stationary no-hit scenes. The unchanged fixture gives 35/51 observations on old source and 51/51 with the fix, with identical fresh Java 26.3 records. The 16 old failures are the four hit scenes at total ticks 1, 2, 40 and 100. Setup, before states, the no-hit control, and NONE at ticks 101/130 match.

The scene waits for loaded coordinates and actual tick completion. The runtime proof covers tilt and reset timing only; sound/vibration streams, drops, fluids and other projectile reactions are outside this proof.

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

Java 26.3 BigDripleafBlock.onProjectileHit unconditionally calls setTiltAndScheduleTick with FULL and the tilt-down sound. Unlike entityInside, it does not check neighboring redstone power. The helper uses update flags 2, emits the change event when tilt changes, plays the sound and schedules FULL's 100-tick delay. Inspected the pinned official bytecode and the existing reset/tick paths.

Regression: python3 tools/test_dripleaf_projectiles_parity.py. Add the explicit projectile-hit port mapping and connect the game handler to the level behavior.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick on local validation, against origin/main at 68ff46998, 16 min 5 s)

Check Result
Scope ✅ 5 files, +191 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (2 min 20 s)
rustfmt ✅ (29 s)
clippy ✅ (4 min 49 s)
tests: horizon-client, horizon-world ❌ 1028 passed, 6 failed (7 min 48 s)
doc tests ✅ 0 passed (5 s)
content root tests ➖ content root untouched
mod API up to date ✅ (34 s)
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)

The six red tests are existing piston failures: all six reproduce on unchanged main at 68ff46998, with the same assertion values (69 passed, six failed in cargo test -p horizon-world --lib level::tests::). The existing standing-dripleaf test passes. After Cargo stopped on those failures, all 30 remaining world integration targets were run separately: 88 passed, one ignored, no failures. The self-check remains red on these baseline failures.

The focused old/fixed runtime above was run separately. Full affected parity was not run locally (--quick).

🤖 Generated with Codex


🔄 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/7799 **Author:** [@TheMrZZ](https://github.com/TheMrZZ) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/h115-dripleaf-projectiles` --- ### 📝 Commits (1) - [`1c5777a`](https://github.com/horizon-rust/horizon/commit/1c5777ac8bb8fc578c3be8d02974042a80bbf3e4) Tilt big dripleaves fully when projectiles hit ### 📊 Changes **5 files changed** (+191 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+5 -0) 📝 `crates/horizon-world/src/level/hooks.rs` (+23 -0) 📝 `crates/horizon-world/src/level/mod.rs` (+10 -0) 📝 `tools/port_map/game2-012.tsv` (+2 -1) ➕ `tools/test_dripleaf_projectiles_parity.py` (+151 -0) </details> ### 📄 Description > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. ## What and why Projectile hits currently leave big dripleaves at NONE. Route the shared projectile block-hit handler through the dripleaf behavior so a hit sets FULL immediately and schedules the existing reset after 100 ticks, including for powered leaves. Fixes #7767. Add a fresh dedicated-server regression with arrow, snowball, ender-pearl, powered-arrow and stationary no-hit scenes. The unchanged fixture gives **35/51 observations on old source and 51/51 with the fix**, with identical fresh Java 26.3 records. The 16 old failures are the four hit scenes at total ticks 1, 2, 40 and 100. Setup, before states, the no-hit control, and NONE at ticks 101/130 match. The scene waits for loaded coordinates and actual tick completion. The runtime proof covers tilt and reset timing only; sound/vibration streams, drops, fluids and other projectile reactions are outside this proof. ## 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 Java 26.3 `BigDripleafBlock.onProjectileHit` unconditionally calls `setTiltAndScheduleTick` with FULL and the tilt-down sound. Unlike `entityInside`, it does not check neighboring redstone power. The helper uses update flags 2, emits the change event when tilt changes, plays the sound and schedules FULL's 100-tick delay. Inspected the pinned official bytecode and the existing reset/tick paths. Regression: `python3 tools/test_dripleaf_projectiles_parity.py`. Add the explicit projectile-hit port mapping and connect the game handler to the level behavior. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on local validation, against origin/main at 68ff46998, 16 min 5 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +191 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (2 min 20 s) | | rustfmt | ✅ (29 s) | | clippy | ✅ (4 min 49 s) | | tests: horizon-client, horizon-world | ❌ 1028 passed, 6 failed (7 min 48 s) | | doc tests | ✅ 0 passed (5 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (34 s) | | 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) | The six red tests are existing piston failures: all six reproduce on unchanged main at `68ff46998`, with the same assertion values (69 passed, six failed in `cargo test -p horizon-world --lib level::tests::`). The existing standing-dripleaf test passes. After Cargo stopped on those failures, all 30 remaining world integration targets were run separately: 88 passed, one ignored, no failures. The self-check remains red on these baseline failures. The focused old/fixed runtime above was run separately. Full affected parity was not run locally (`--quick`). 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7830
No description provided.