[PR #59] [MERGED] Fix animations, axolotls, fluids, fire and world progress isolation #2307

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

📋 Pull Request Information

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

Base: main ← Head: fix/vanilla-item-use-animations


📝 Commits (10+)

  • 5903b59 Fix item-use feedback, ranged poses, arrows and elytra rendering
  • 7788902 Merge remote-tracking branch 'origin/main' into fix/vanilla-item-use-animations
  • 726f88f Fix axolotl AI, fluid and fire integration, and world-local progress
  • f3dda9c Address PR59 review: axolotl timers, fluid and fire parity, persistence and Rust tests
  • 2236c96 Apply burning-time scaling to Fire Aspect ignition too
  • cadc469 Merge current main; restore player hurt sounds and bucket fluid updates
  • e828354 Apply fluid currents to primed TNT and show fire in inventory preview
  • 29fbebf Merge main and retain Dolphin Grace and Weaving effect flags
  • e9e4ef9 Merge main and address PR59 bucket, fire, mipmap and AI review
  • f1e0b09 Merge newer main while retaining consumable guard and review fixes

📊 Changes

52 files changed (+4737 additions, -448 deletions)

View changed files

📝 crates/horizon-client/src/advancements.rs (+19 -0)
📝 crates/horizon-client/src/assets.rs (+2 -0)
📝 crates/horizon-client/src/effects.rs (+4 -0)
📝 crates/horizon-client/src/entities.rs (+228 -0)
📝 crates/horizon-client/src/entity_nbt.rs (+354 -10)
➕ crates/horizon-client/src/fire_render.rs (+106 -0)
📝 crates/horizon-client/src/first_person.rs (+289 -0)
📝 crates/horizon-client/src/game.rs (+364 -126)
📝 crates/horizon-client/src/game/advancements.rs (+1 -1)
📝 crates/horizon-client/src/game/armor_stands.rs (+54 -2)
📝 crates/horizon-client/src/game/books.rs (+1 -0)
📝 crates/horizon-client/src/game/combat.rs (+1 -9)
📝 crates/horizon-client/src/game/creatures.rs (+86 -68)
📝 crates/horizon-client/src/game/crossbow.rs (+2 -2)
📝 crates/horizon-client/src/game/dispenser.rs (+8 -45)
📝 crates/horizon-client/src/game/enchant_effects.rs (+5 -24)
📝 crates/horizon-client/src/game/fireworks.rs (+1 -0)
📝 crates/horizon-client/src/game/item_draw.rs (+1 -1)
📝 crates/horizon-client/src/game/lightning.rs (+13 -7)
📝 crates/horizon-client/src/game/perspective.rs (+161 -25)

...and 32 more files

📄 Description

Fix missing item-use/drop animations, fluid/fire behavior, axolotl behavior, and world-runtime state leaking between worlds.

Player swimming and environmental damage build on main's shared fluid foundation from #186. The integration retains its water fall-reset ray, landing-time fluid refresh, native immersion box, current handling, splash effects, and fluid resources. Our duplicate fluid scanning, trait bindings, raw water/lava flags, and extra lava fall-distance halving are removed. A single base fluid phase updates swimming from the previous eye sample and sprint state before local sprint input; it processes remaining fire before the first-tick clear. Landing refresh remains conditional as in #186.

Changes retained from this PR:

  • Swing after successful supported item/tool/bucket uses and non-empty drops. Failed fire placement does not swing, emit ignition effects, or consume/damage the item. Preserve TNT priority, campfire/candle relighting, block-food placement, and the consumable-component guard.
  • Use first-person bow/crossbow, trident, eating/drinking transforms and handedness, plus player-model ranged-item poses. Render equipped elytra, eased wings, and fall-flying poses in world and inventory views.
  • Render arrows with the exported baked model and emit critical trails and underwater bubbles. Preserve native flowing-water texture detail, real sprite dimensions, resource-pack sizing/reload, and mip selection based on the smallest native atlas layer.
  • Preserve liquid travel, sprint swimming and pitch steering, swimming/crawl input distinctions, air/drowning, extinguishing, fire delay/protection scaling, and single hurt-audio dispatch. Swim entry requires prior-eye immersion and water in the feet cell; grounded mixed-fluid jumps use lava height. Remaining-fire damage precedes water extinguishing and the first-tick lava gate. Bubble columns refill air, and Breath of the Nautilus suppresses drowning without refilling air while submerged unless Water Breathing or Conduit Power is also present. Restore saved player Fire/Air only on initial world entry. Animated flames render on entities and inventory previews; fire-immune items remain unlit. Item/armor-stand damage, extinguish events, equipment drops, and NBT use their supported native rules.
  • Correct axolotl movement, prey sensing/hunting, playing-dead targetability/timers, breeding and baby-follow, supportive regeneration, and bucket/Brain restoration. Buckets use the named axolotl variant component with backward compatibility, preserve AgeLocked/Bucketable defaults, and retain the supported custom name. Exact seeded replay parity remains the separate #64 follow-up.
  • Bind primed TNT to the existing immersion/current kernels in its actual tick order, preserving sinking, dry movement, ground bounce, fuse timing, and the explosion-tick boundary.
  • Dispatch bucket-placement advancements through the block predicate and reset advancement/stat runtime state on world entry while retaining saved progress. Source-slicing Python probes were replaced by Rust production-seam tests.

Current-main integration preserves axolotl damage handling in the shared damage_with path, including mace/enchantment damage, and retains main's subsequent changes.

Validation:

  • Follow-up: all client Rust tests passed (489 library, 32 game, 15 control, 2 LAN), using prepared local 26.3 resources. The added resident-scene regressions cover prior-eye/crouch sprint eligibility, feet-water swim entry versus retention, the delayed sprint-to-swim transition, both mixed-fluid height inversions, on-fire damage before first-tick lava recognition/water extinguishing, and bubble-column/Nautilus air rules. Warning-denied client all-target Clippy, formatting, whitespace, public-tree checks and independent review passed.
  • Prior integration: full client Rust suite with prepared local 26.3 resources, including swimming/drowning/lava/fire, sprint swimming and pitch steering. Added a real Entity.move regression for preset falls into a one-block water layer, with dry ground as the damage control, and a previous-eye-state assertion guarding against duplicate base fluid phases.
  • Prior integration also passed remaining workspace Rust tests, 173 Python unit tests, warning-denied workspace all-target Clippy, formatting, whitespace and public-tree history checks; these broader suites were not rerun for the four-file call-site follow-up.
  • Independent source review of fluid ownership, phase ordering, landing refresh, and preservation of existing behavior.

The maintainer's #186 native-corpus results are upstream evidence; those large native parity suites have not been rerun on this integration. Grok’s focused source review identified six call-site mismatches; the follow-up corrects them and adds resident-scene regressions for their edge cases. No preview binary was rebuilt and no game window was launched; combined in-game visuals/audio remain unchecked.

Latest main integration:

Merged main f02db7ae after reviewing Grok's resolved 830e8adb merge. Player movement retains one base fluid phase and the swimming/fire/drowning corrections. Arrows use main's water/fire/pickup/current tick and event path while retaining baked geometry plus burning-arrow flame quads. Sprite animation uses main's MipmapGenerator settings with the native-size mip limit. The new panorama input and HUD fire animations both remain; hurt sounds dispatch once through the motion event, using main's damage-effect sound mapping. Axolotl before_damage remains in the shared damage_with path.

Validation for this merge: full client Rust tests with prepared local resources, warning-denied client all-target Clippy, formatting, whitespace and public-tree checks. No workspace Clippy, native Java scene-motion run, preview rebuild or in-game visual check for this merge.


🔄 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/59 **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/vanilla-item-use-animations` --- ### 📝 Commits (10+) - [`5903b59`](https://github.com/horizon-rust/horizon/commit/5903b5981df38d7c4834634664082d4f9647e8ca) Fix item-use feedback, ranged poses, arrows and elytra rendering - [`7788902`](https://github.com/horizon-rust/horizon/commit/778890207a8a158ef5b5ab83b8bd7bea07bdcb57) Merge remote-tracking branch 'origin/main' into fix/vanilla-item-use-animations - [`726f88f`](https://github.com/horizon-rust/horizon/commit/726f88fcfca37181f7d4ed231ca022f241ff1486) Fix axolotl AI, fluid and fire integration, and world-local progress - [`f3dda9c`](https://github.com/horizon-rust/horizon/commit/f3dda9c412fe702aa49e2a7635fb7e17b3b52b0a) Address PR59 review: axolotl timers, fluid and fire parity, persistence and Rust tests - [`2236c96`](https://github.com/horizon-rust/horizon/commit/2236c9607f07b6bc95c139e6a1026a5c290b673c) Apply burning-time scaling to Fire Aspect ignition too - [`cadc469`](https://github.com/horizon-rust/horizon/commit/cadc4698c1c2ff9177603ddaeddd83fe7ab8ecf3) Merge current main; restore player hurt sounds and bucket fluid updates - [`e828354`](https://github.com/horizon-rust/horizon/commit/e8283540408eda842322db1cf4b457ea1dbf9541) Apply fluid currents to primed TNT and show fire in inventory preview - [`29fbebf`](https://github.com/horizon-rust/horizon/commit/29fbebf3d7484a2c9aa9f16e50d0f7eb6c9287fe) Merge main and retain Dolphin Grace and Weaving effect flags - [`e9e4ef9`](https://github.com/horizon-rust/horizon/commit/e9e4ef96a7b75fc64e5c1b18463c99b7bba3b8bf) Merge main and address PR59 bucket, fire, mipmap and AI review - [`f1e0b09`](https://github.com/horizon-rust/horizon/commit/f1e0b093a5d91a8ca5024f81ee8cf0910f175c7c) Merge newer main while retaining consumable guard and review fixes ### 📊 Changes **52 files changed** (+4737 additions, -448 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/advancements.rs` (+19 -0) 📝 `crates/horizon-client/src/assets.rs` (+2 -0) 📝 `crates/horizon-client/src/effects.rs` (+4 -0) 📝 `crates/horizon-client/src/entities.rs` (+228 -0) 📝 `crates/horizon-client/src/entity_nbt.rs` (+354 -10) ➕ `crates/horizon-client/src/fire_render.rs` (+106 -0) 📝 `crates/horizon-client/src/first_person.rs` (+289 -0) 📝 `crates/horizon-client/src/game.rs` (+364 -126) 📝 `crates/horizon-client/src/game/advancements.rs` (+1 -1) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+54 -2) 📝 `crates/horizon-client/src/game/books.rs` (+1 -0) 📝 `crates/horizon-client/src/game/combat.rs` (+1 -9) 📝 `crates/horizon-client/src/game/creatures.rs` (+86 -68) 📝 `crates/horizon-client/src/game/crossbow.rs` (+2 -2) 📝 `crates/horizon-client/src/game/dispenser.rs` (+8 -45) 📝 `crates/horizon-client/src/game/enchant_effects.rs` (+5 -24) 📝 `crates/horizon-client/src/game/fireworks.rs` (+1 -0) 📝 `crates/horizon-client/src/game/item_draw.rs` (+1 -1) 📝 `crates/horizon-client/src/game/lightning.rs` (+13 -7) 📝 `crates/horizon-client/src/game/perspective.rs` (+161 -25) _...and 32 more files_ </details> ### 📄 Description Fix missing item-use/drop animations, fluid/fire behavior, axolotl behavior, and world-runtime state leaking between worlds. Player swimming and environmental damage build on main's shared fluid foundation from #186. The integration retains its water fall-reset ray, landing-time fluid refresh, native immersion box, current handling, splash effects, and fluid resources. Our duplicate fluid scanning, trait bindings, raw water/lava flags, and extra lava fall-distance halving are removed. A single base fluid phase updates swimming from the previous eye sample and sprint state before local sprint input; it processes remaining fire before the first-tick clear. Landing refresh remains conditional as in #186. Changes retained from this PR: - Swing after successful supported item/tool/bucket uses and non-empty drops. Failed fire placement does not swing, emit ignition effects, or consume/damage the item. Preserve TNT priority, campfire/candle relighting, block-food placement, and the consumable-component guard. - Use first-person bow/crossbow, trident, eating/drinking transforms and handedness, plus player-model ranged-item poses. Render equipped elytra, eased wings, and fall-flying poses in world and inventory views. - Render arrows with the exported baked model and emit critical trails and underwater bubbles. Preserve native flowing-water texture detail, real sprite dimensions, resource-pack sizing/reload, and mip selection based on the smallest native atlas layer. - Preserve liquid travel, sprint swimming and pitch steering, swimming/crawl input distinctions, air/drowning, extinguishing, fire delay/protection scaling, and single hurt-audio dispatch. Swim entry requires prior-eye immersion and water in the feet cell; grounded mixed-fluid jumps use lava height. Remaining-fire damage precedes water extinguishing and the first-tick lava gate. Bubble columns refill air, and Breath of the Nautilus suppresses drowning without refilling air while submerged unless Water Breathing or Conduit Power is also present. Restore saved player Fire/Air only on initial world entry. Animated flames render on entities and inventory previews; fire-immune items remain unlit. Item/armor-stand damage, extinguish events, equipment drops, and NBT use their supported native rules. - Correct axolotl movement, prey sensing/hunting, playing-dead targetability/timers, breeding and baby-follow, supportive regeneration, and bucket/Brain restoration. Buckets use the named axolotl variant component with backward compatibility, preserve AgeLocked/Bucketable defaults, and retain the supported custom name. Exact seeded replay parity remains the separate #64 follow-up. - Bind primed TNT to the existing immersion/current kernels in its actual tick order, preserving sinking, dry movement, ground bounce, fuse timing, and the explosion-tick boundary. - Dispatch bucket-placement advancements through the block predicate and reset advancement/stat runtime state on world entry while retaining saved progress. Source-slicing Python probes were replaced by Rust production-seam tests. Current-main integration preserves axolotl damage handling in the shared `damage_with` path, including mace/enchantment damage, and retains main's subsequent changes. Validation: - Follow-up: all client Rust tests passed (489 library, 32 game, 15 control, 2 LAN), using prepared local 26.3 resources. The added resident-scene regressions cover prior-eye/crouch sprint eligibility, feet-water swim entry versus retention, the delayed sprint-to-swim transition, both mixed-fluid height inversions, on-fire damage before first-tick lava recognition/water extinguishing, and bubble-column/Nautilus air rules. Warning-denied client all-target Clippy, formatting, whitespace, public-tree checks and independent review passed. - Prior integration: full client Rust suite with prepared local 26.3 resources, including swimming/drowning/lava/fire, sprint swimming and pitch steering. Added a real `Entity.move` regression for preset falls into a one-block water layer, with dry ground as the damage control, and a previous-eye-state assertion guarding against duplicate base fluid phases. - Prior integration also passed remaining workspace Rust tests, 173 Python unit tests, warning-denied workspace all-target Clippy, formatting, whitespace and public-tree history checks; these broader suites were not rerun for the four-file call-site follow-up. - Independent source review of fluid ownership, phase ordering, landing refresh, and preservation of existing behavior. The maintainer's #186 native-corpus results are upstream evidence; those large native parity suites have not been rerun on this integration. Grok’s focused source review identified six call-site mismatches; the follow-up corrects them and adds resident-scene regressions for their edge cases. No preview binary was rebuilt and no game window was launched; combined in-game visuals/audio remain unchecked. Latest main integration: Merged main `f02db7ae` after reviewing Grok's resolved `830e8adb` merge. Player movement retains one base fluid phase and the swimming/fire/drowning corrections. Arrows use main's water/fire/pickup/current tick and event path while retaining baked geometry plus burning-arrow flame quads. Sprite animation uses main's MipmapGenerator settings with the native-size mip limit. The new panorama input and HUD fire animations both remain; hurt sounds dispatch once through the motion event, using main's damage-effect sound mapping. Axolotl before_damage remains in the shared damage_with path. Validation for this merge: full client Rust tests with prepared local resources, warning-denied client all-target Clippy, formatting, whitespace and public-tree checks. No workspace Clippy, native Java scene-motion run, preview rebuild or in-game visual check for this merge. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:49 +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#2307
No description provided.