[PR #465] [MERGED] Fix Happy Ghast riding controls and standing after dismount #2583

Closed
opened 2026-11-02 15:57:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/465
Author: @LookImEcho-Rick
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @ludovic111

Base: main ← Head: codex/fix-happy-ghast-riding


📝 Commits (2)

  • 705fab9 Fix happy ghast rider collisions and turning
  • 924698e Support standing and walking on happy ghasts

📊 Changes

18 files changed (+281 additions, -14 deletions)

View changed files

📝 crates/horizon-client/examples/auto_jump_probe.rs (+1 -0)
📝 crates/horizon-client/examples/mob_ai_probe.rs (+4 -0)
📝 crates/horizon-client/examples/scene_collision_probe.rs (+46 -7)
📝 crates/horizon-client/examples/scene_motion_probe.rs (+1 -0)
📝 crates/horizon-client/src/collisions.rs (+62 -0)
📝 crates/horizon-client/src/game.rs (+2 -0)
📝 crates/horizon-client/src/game/ghasts.rs (+17 -1)
📝 crates/horizon-client/src/game/lan_actions.rs (+1 -0)
📝 crates/horizon-client/src/game/remote.rs (+2 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+2 -0)
📝 crates/horizon-client/src/mobs/equine.rs (+3 -3)
📝 crates/horizon-client/src/mobs/happy_ghast.rs (+23 -0)
📝 crates/horizon-client/src/motion.rs (+94 -2)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMobAiOracle.java (+6 -0)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaRegistryCollisionScanOracle.java (+2 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaSceneCollisionOracle.java (+3 -0)
📝 tools/test_mob_ai_parity.py (+5 -0)
📝 tools/test_native_scene_collision.py (+7 -0)

📄 Description

What and why

Fixes #411.

  • Stop the Happy Ghast pushing against its own seated driver, which caused backward drift and overwhelmed forward input. Preserve its vanilla 8% yaw interpolation instead of overwriting the yaw first.
  • Supply solid adult Happy Ghast boxes to player movement and obstruction queries so midair dismounting supports standing, walking, jumping and sneaking on top. Babies and ineligible ghasts remain non-solid, and the player's own vehicle is excluded.

Two focused commits separate riding controls from standing/collision support. Existing parity harnesses are extended; no game files or generated resources are included.

Vanilla reference

Minecraft Java 26.3: HappyGhast getRiddenInput, tickRidden, canBeCollidedWith, and getDismountLocationForPassenger; Entity.push and EntityGetter.getEntityCollisions. Checked against the checksum-pinned 26.3 client bytecode as well.

Coverage extends test_mob_ai_parity.py and test_native_scene_collision.py, with a player-motion regression covering standing, walking, jumping, sneaking at the edge and walking off.

Self-check

The prescribed pr_ready.py --base upstream/main was attempted, but native Windows cannot import its parity module:

AttributeError: module 'os' has no attribute 'uname'

Checks run directly:

  • Passed: rustfmt; workspace/all-target Clippy with warnings denied; public-tree and whitespace checks.
  • Passed: four focused Rust tests, including the player-motion regression using installed 26.3 resources.
  • Passed: both new riding scenarios (four state snapshots) match vanilla; all 40 new collision fixtures match the vanilla client.
  • Passed: optimized client build and world-load smoke runs (600 and 2,400 frames).
  • Python suite: 209 passed; two test-module import errors (test_parity_runner, test_pr_ready) due to the same Windows os.uname limitation.
  • Full cargo test --locked -p horizon-client: 725 passed, 5 failed, 5 ignored. The four ghast-related tests passed. Failures were in unchanged test modules: crash::tests::stacks_start_at_the_panicking_frame, packs::cache::tests::directory_inputs_config_and_owned_output_recovery, save::tests::session_lock_is_exclusive, server::java_properties::tests::stores_sorted_and_escaped, and server::properties::tests::defaults_match_vanilla_init_settings. These failures have not been compared against an unmodified baseline; no unrelated fixes are included.

The full affected vanilla harness set and server-side comparison still need the maintainer parity runner.

Manual verification

Tested in-game on Windows: the reporter confirmed movement works and standing on the ghast after dismounting works. Harness goggles sounds are unchanged and were confirmed against vanilla.


🔄 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/465 **Author:** [@LookImEcho-Rick](https://github.com/LookImEcho-Rick) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `codex/fix-happy-ghast-riding` --- ### 📝 Commits (2) - [`705fab9`](https://github.com/horizon-rust/horizon/commit/705fab9bed0724ba330ea247845fd13e5180f5f1) Fix happy ghast rider collisions and turning - [`924698e`](https://github.com/horizon-rust/horizon/commit/924698e506a16cfa67097a25ce9f6dc1c6f7da80) Support standing and walking on happy ghasts ### 📊 Changes **18 files changed** (+281 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/auto_jump_probe.rs` (+1 -0) 📝 `crates/horizon-client/examples/mob_ai_probe.rs` (+4 -0) 📝 `crates/horizon-client/examples/scene_collision_probe.rs` (+46 -7) 📝 `crates/horizon-client/examples/scene_motion_probe.rs` (+1 -0) 📝 `crates/horizon-client/src/collisions.rs` (+62 -0) 📝 `crates/horizon-client/src/game.rs` (+2 -0) 📝 `crates/horizon-client/src/game/ghasts.rs` (+17 -1) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/equine.rs` (+3 -3) 📝 `crates/horizon-client/src/mobs/happy_ghast.rs` (+23 -0) 📝 `crates/horizon-client/src/motion.rs` (+94 -2) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaMobAiOracle.java` (+6 -0) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaRegistryCollisionScanOracle.java` (+2 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaSceneCollisionOracle.java` (+3 -0) 📝 `tools/test_mob_ai_parity.py` (+5 -0) 📝 `tools/test_native_scene_collision.py` (+7 -0) </details> ### 📄 Description ## What and why Fixes #411. - Stop the Happy Ghast pushing against its own seated driver, which caused backward drift and overwhelmed forward input. Preserve its vanilla 8% yaw interpolation instead of overwriting the yaw first. - Supply solid adult Happy Ghast boxes to player movement and obstruction queries so midair dismounting supports standing, walking, jumping and sneaking on top. Babies and ineligible ghasts remain non-solid, and the player's own vehicle is excluded. Two focused commits separate riding controls from standing/collision support. Existing parity harnesses are extended; no game files or generated resources are included. ## Vanilla reference Minecraft Java 26.3: [HappyGhast](https://mcsrc.dev/2/26.3/net/minecraft/world/entity/animal/happyghast/HappyGhast) `getRiddenInput`, `tickRidden`, `canBeCollidedWith`, and `getDismountLocationForPassenger`; `Entity.push` and `EntityGetter.getEntityCollisions`. Checked against the checksum-pinned 26.3 client bytecode as well. Coverage extends `test_mob_ai_parity.py` and `test_native_scene_collision.py`, with a player-motion regression covering standing, walking, jumping, sneaking at the edge and walking off. ## Self-check The prescribed `pr_ready.py --base upstream/main` was attempted, but native Windows cannot import its parity module: ```text AttributeError: module 'os' has no attribute 'uname' ``` Checks run directly: - Passed: rustfmt; workspace/all-target Clippy with warnings denied; public-tree and whitespace checks. - Passed: four focused Rust tests, including the player-motion regression using installed 26.3 resources. - Passed: both new riding scenarios (four state snapshots) match vanilla; all 40 new collision fixtures match the vanilla client. - Passed: optimized client build and world-load smoke runs (600 and 2,400 frames). - Python suite: 209 passed; two test-module import errors (`test_parity_runner`, `test_pr_ready`) due to the same Windows `os.uname` limitation. - Full `cargo test --locked -p horizon-client`: 725 passed, 5 failed, 5 ignored. The four ghast-related tests passed. Failures were in unchanged test modules: `crash::tests::stacks_start_at_the_panicking_frame`, `packs::cache::tests::directory_inputs_config_and_owned_output_recovery`, `save::tests::session_lock_is_exclusive`, `server::java_properties::tests::stores_sorted_and_escaped`, and `server::properties::tests::defaults_match_vanilla_init_settings`. These failures have not been compared against an unmodified baseline; no unrelated fixes are included. The full affected vanilla harness set and server-side comparison still need the maintainer parity runner. ## Manual verification Tested in-game on Windows: the reporter confirmed movement works and standing on the ghast after dismounting works. Harness goggles sounds are unchanged and were confirmed against vanilla. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:57:22 +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#2583
No description provided.