[PR #183] [MERGED] Drive rabbit hop and idle animations from runtime controls #2384

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/183
Author: @Online5277
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: fix/rabbit-animation


📝 Commits (2)

  • af8700b Drive rabbit hop and idle animations from runtime controls
  • 88b9a82 Select baby rabbit model for summoned negative ages

📊 Changes

10 files changed (+557 additions, -7 deletions)

View changed files

📝 crates/horizon-client/examples/mob_ai_probe.rs (+2 -0)
📝 crates/horizon-client/src/game/creatures.rs (+2 -0)
📝 crates/horizon-client/src/game/lan.rs (+3 -0)
📝 crates/horizon-client/src/game/remote.rs (+23 -0)
📝 crates/horizon-client/src/mobs.rs (+7 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+17 -4)
📝 crates/horizon-client/src/mobs/control.rs (+6 -0)
📝 crates/horizon-client/src/mobs/living.rs (+7 -3)
➕ crates/horizon-client/src/mobs/rabbit.rs (+486 -0)
📝 crates/horizon-client/src/mobs/render.rs (+4 -0)

📄 Description

Rabbits stayed in their bind pose because runtime code never started the hop or idle animation clocks. They also used generic ground walking. Wire rabbit hop controls and client clocks into the existing renderer, so rabbits wait between hops and play the existing adult/baby hop and idle-head-tilt clips.

Select the existing baby model and texture for negative Age values. Previously /summon minecraft:rabbit ~ ~ ~ {Age:-24000} loaded a baby internally but still drew the adult model.

The runtime uses the supplied pinned-source timing: fifteen-tick hops, ten/three-tick landing cooldowns, separate ground-event-driven client counters, idle timeout priority, and clock retention across repeated hops. Rabbit movement uses the normal/panic speeds, water override, jump strength/boost scaling, and age-dependent kick. LAN hosts broadcast hop event 1; remote clients consume that event and rabbit baby/NoAI metadata.

Fixes #109.

Validation:

  • Eight Rust regressions call runtime controllers/counters and NBT loading/model selection, including a clock-to-model pose regression, hop expiry/retention, idle/NoAI/leash behavior, deep-fluid event gating, water landing delay, jump impulses, and negative/zero/positive Age values. The summon-age regression failed with the adult model before the fix and passed afterward.
  • Workspace Rust tests, warning-denied all-target workspace Clippy, formatting, whitespace/public-tree checks and independent review.
  • No in-game or LAN visual check. Manual check: observe adult and baby rabbits hopping, idle head tilts after roughly ten idle seconds, panic hops after damage, and the same hops from a LAN guest.

Existing limits: mob block-jump-factor lookup uses the feet instead of tracked supporting blocks; this does not add event-1 sprint particles, missing rabbit goals/killer-bunny behavior, or general remote leash syncing. No exhaustive native parity claim.


🔄 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/183 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/rabbit-animation` --- ### 📝 Commits (2) - [`af8700b`](https://github.com/horizon-rust/horizon/commit/af8700bd2070deb7ae6b85b0113630c011322951) Drive rabbit hop and idle animations from runtime controls - [`88b9a82`](https://github.com/horizon-rust/horizon/commit/88b9a82688b00a4b48f4939023cfd28b22cc544f) Select baby rabbit model for summoned negative ages ### 📊 Changes **10 files changed** (+557 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/mob_ai_probe.rs` (+2 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+2 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+3 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+23 -0) 📝 `crates/horizon-client/src/mobs.rs` (+7 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+17 -4) 📝 `crates/horizon-client/src/mobs/control.rs` (+6 -0) 📝 `crates/horizon-client/src/mobs/living.rs` (+7 -3) ➕ `crates/horizon-client/src/mobs/rabbit.rs` (+486 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+4 -0) </details> ### 📄 Description Rabbits stayed in their bind pose because runtime code never started the hop or idle animation clocks. They also used generic ground walking. Wire rabbit hop controls and client clocks into the existing renderer, so rabbits wait between hops and play the existing adult/baby hop and idle-head-tilt clips. Select the existing baby model and texture for negative `Age` values. Previously `/summon minecraft:rabbit ~ ~ ~ {Age:-24000}` loaded a baby internally but still drew the adult model. The runtime uses the supplied pinned-source timing: fifteen-tick hops, ten/three-tick landing cooldowns, separate ground-event-driven client counters, idle timeout priority, and clock retention across repeated hops. Rabbit movement uses the normal/panic speeds, water override, jump strength/boost scaling, and age-dependent kick. LAN hosts broadcast hop event 1; remote clients consume that event and rabbit baby/NoAI metadata. Fixes #109. Validation: - Eight Rust regressions call runtime controllers/counters and NBT loading/model selection, including a clock-to-model pose regression, hop expiry/retention, idle/NoAI/leash behavior, deep-fluid event gating, water landing delay, jump impulses, and negative/zero/positive `Age` values. The summon-age regression failed with the adult model before the fix and passed afterward. - Workspace Rust tests, warning-denied all-target workspace Clippy, formatting, whitespace/public-tree checks and independent review. - No in-game or LAN visual check. Manual check: observe adult and baby rabbits hopping, idle head tilts after roughly ten idle seconds, panic hops after damage, and the same hops from a LAN guest. Existing limits: mob block-jump-factor lookup uses the feet instead of tracked supporting blocks; this does not add event-1 sprint particles, missing rabbit goals/killer-bunny behavior, or general remote leash syncing. No exhaustive native parity claim. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:31 +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#2384
No description provided.