[PR #7701] Armor stands sink in lava and ride bubble columns as in vanilla #7774

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

📋 Pull Request Information

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

Base: main ← Head: fix/stand-fluids


📝 Commits (4)

  • f91e66a Items and armor stands take fluids and bubble columns from the Entity trait
  • 2970bd9 Merge remote-tracking branch 'origin/main' into refactor/entity-fluids-items
  • cdc16cf Armor stands in lava and bubble columns move as in vanilla
  • adedbd0 Merge remote-tracking branch 'origin/main' into fix/stand-fluids

📊 Changes

7 files changed (+342 additions, -116 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+241 -56)
📝 crates/horizon-client/src/entities/fluids.rs (+27 -28)
📝 crates/horizon-client/src/game.rs (+3 -2)
📝 crates/horizon-client/src/game/armor_stands.rs (+15 -18)
📝 crates/horizon-client/src/game/entity.rs (+50 -1)
📝 crates/horizon-client/src/game/remote.rs (+3 -2)
📝 crates/horizon-client/src/game/tnt.rs (+3 -9)

📄 Description

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

Stacks on #7669.

What and why

A plain armor stand (no NoGravity) in lava and in a bubble column differed from vanilla. Two causes in the stand's travel:

  • Lava: the stand got air drag and gravity. It now follows LivingEntity.travelInLava: the motion is halved (a shallow lava, no deeper than 0.4, also takes the 0.8 vertical slowdown and the gravity / 16 sink), then it sinks by gravity / 4.
  • Bubble column: the push ran before the water slowdown. Vanilla applies block effects in LivingEntity.aiStep after travel, so the push now runs after the stand's settle step and is not slowed down.

New StandMedium (air, water, lava with shallow flag) is passed to ArmorStand::tick_settle. Static dispatch, no allocation. Stacks on the slice 9b PR (#7669, #6509 / #6544): it edits the same stand tick and builds on its tick_move / tick_settle split, so it should be reviewed after that one merges (the diff against its branch is two files).

Fixes #7699

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

LivingEntity.travel, travelInFluid, travelInLava, travelInWater, getFluidFallingAdjustedMovement, LivingEntity.aiStep (travel, then applyEffectsFromBlocks), Entity.handleOnInsideBubbleColumn (up: min(0.7, y + 0.06) per block touched, down: max(-0.3, y - 0.03)), ArmorStand.travel.

Proof

Side-by-side scene items_stands_fluids against the real server (same as slice 9b: item and stand, with and without NoGravity, in water, lava, bubble column up and down and a stream, 12 ticks, tolerance 1e-6; vanilla changed 31 of 40 probed values):

values matching vanilla
slice 9b branch 451 of 520
this change 520 of 520

Unit test a_stand_in_lava_halves_its_motion_and_sinks_by_a_quarter_of_gravity checks the vanilla Motion y of a stand at rest in deep lava (-0.02, -0.03, -0.035), shallow lava, and air unchanged. With the lava branch disabled it fails (got -0.0784, want -0.02); with it, it passes. The bubble column order is covered by the scene, not by a unit test.

Not fixed here: a normal stand in a fire block differs in 8 values (Fire and Health from tick 1), a separate cause.

Harnesses

DISPLAY=:0 HORIZON_E2E_HEADLESS=1, own empty .local/parity-target: tools/parity.py armor_stand_frost armor_stand_turtle_egg server_entities entity_fluid_tick: 4 passed, 0 failed (entity_fluid_tick 23 s, server_entities 116 s, armor_stand_frost 214 s, armor_stand_turtle_egg 482 s). tools/pr_ready.py --quick: rustfmt, clippy, 2163 tests in horizon-client and horizon-client-lib and the Python tests pass; the other 293 affected parity harnesses are left to CI.

Proved by script against the real 26.3 server; no human played this change.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on Valhalla, against origin/main at f4a9e85d7, 9 min 0 s)

Check Result
Scope ✅ 7 files, +342 −116
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (28 s)
rustfmt ✅ (7 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 ✅ (1 min 36 s)
tests: horizon-client, horizon-client-lib ✅ 2177 passed (6 min 28 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
mod API up to date ✅ (13 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 293 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow, arrow_wind_charge, attribute_health, attribute_map_queries, attribute and 281 more
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/7701 **Author:** [@HrafnaValkyrja](https://github.com/HrafnaValkyrja) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/stand-fluids` --- ### 📝 Commits (4) - [`f91e66a`](https://github.com/horizon-rust/horizon/commit/f91e66a520421e782871a03f265ae52f7dbb2252) Items and armor stands take fluids and bubble columns from the Entity trait - [`2970bd9`](https://github.com/horizon-rust/horizon/commit/2970bd933a83bb0659441b00e1452fa156f8a481) Merge remote-tracking branch 'origin/main' into refactor/entity-fluids-items - [`cdc16cf`](https://github.com/horizon-rust/horizon/commit/cdc16cf90961ca2ef46390de1c72a4cdd6d73ef0) Armor stands in lava and bubble columns move as in vanilla - [`adedbd0`](https://github.com/horizon-rust/horizon/commit/adedbd05ba139da1df8b4ddafa099111caa1c53f) Merge remote-tracking branch 'origin/main' into fix/stand-fluids ### 📊 Changes **7 files changed** (+342 additions, -116 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+241 -56) 📝 `crates/horizon-client/src/entities/fluids.rs` (+27 -28) 📝 `crates/horizon-client/src/game.rs` (+3 -2) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+15 -18) 📝 `crates/horizon-client/src/game/entity.rs` (+50 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+3 -2) 📝 `crates/horizon-client/src/game/tnt.rs` (+3 -9) </details> ### 📄 Description > 🤖 Opened by Valkyrie's AI agent (Claude Code, Opus 5.5), not by Valkyrie herself. Stacks on #7669. ## What and why A plain armor stand (no `NoGravity`) in lava and in a bubble column differed from vanilla. Two causes in the stand's travel: - Lava: the stand got air drag and gravity. It now follows `LivingEntity.travelInLava`: the motion is halved (a shallow lava, no deeper than 0.4, also takes the 0.8 vertical slowdown and the gravity / 16 sink), then it sinks by gravity / 4. - Bubble column: the push ran before the water slowdown. Vanilla applies block effects in `LivingEntity.aiStep` after `travel`, so the push now runs after the stand's settle step and is not slowed down. New `StandMedium` (air, water, lava with shallow flag) is passed to `ArmorStand::tick_settle`. Static dispatch, no allocation. Stacks on the slice 9b PR (#7669, #6509 / #6544): it edits the same stand tick and builds on its `tick_move` / `tick_settle` split, so it should be reviewed after that one merges (the diff against its branch is two files). Fixes #7699 ## 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 `LivingEntity.travel`, `travelInFluid`, `travelInLava`, `travelInWater`, `getFluidFallingAdjustedMovement`, `LivingEntity.aiStep` (`travel`, then `applyEffectsFromBlocks`), `Entity.handleOnInsideBubbleColumn` (up: min(0.7, y + 0.06) per block touched, down: max(-0.3, y - 0.03)), `ArmorStand.travel`. ## Proof Side-by-side scene `items_stands_fluids` against the real server (same as slice 9b: item and stand, with and without `NoGravity`, in water, lava, bubble column up and down and a stream, 12 ticks, tolerance 1e-6; vanilla changed 31 of 40 probed values): | | values matching vanilla | |---|---| | slice 9b branch | 451 of 520 | | this change | 520 of 520 | Unit test `a_stand_in_lava_halves_its_motion_and_sinks_by_a_quarter_of_gravity` checks the vanilla Motion y of a stand at rest in deep lava (-0.02, -0.03, -0.035), shallow lava, and air unchanged. With the lava branch disabled it fails (`got -0.0784, want -0.02`); with it, it passes. The bubble column order is covered by the scene, not by a unit test. Not fixed here: a normal stand in a fire block differs in 8 values (Fire and Health from tick 1), a separate cause. ## Harnesses `DISPLAY=:0 HORIZON_E2E_HEADLESS=1`, own empty `.local/parity-target`: `tools/parity.py armor_stand_frost armor_stand_turtle_egg server_entities entity_fluid_tick`: 4 passed, 0 failed (entity_fluid_tick 23 s, server_entities 116 s, armor_stand_frost 214 s, armor_stand_turtle_egg 482 s). `tools/pr_ready.py --quick`: rustfmt, clippy, 2163 tests in horizon-client and horizon-client-lib and the Python tests pass; the other 293 affected parity harnesses are left to CI. Proved by script against the real 26.3 server; no human played this change. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Valhalla, against origin/main at f4a9e85d7, 9 min 0 s) | Check | Result | | --- | --- | | Scope | ✅ 7 files, +342 −116 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (28 s) | | rustfmt | ✅ (7 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 | ✅ (1 min 36 s) | | tests: horizon-client, horizon-client-lib | ✅ 2177 passed (6 min 28 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (13 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 293 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, anvil_turtle_egg, armor_stand_frost, armor_stand_turtle_egg, arrow, arrow_wind_charge, attribute_health, attribute_map_queries, attribute and 281 more | | 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>
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#7774
No description provided.