[PR #3782] [MERGED] Armor stands: bubble columns push them, and water slows and floats them #5215

Closed
opened 2026-11-03 05:11:02 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3782
Author: @xFedeT
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/armor-stand-bubble-column


📝 Commits (2)

  • 8b5145e Armor stands: bubble columns push them, and water slows and floats them
  • bc5fd42 Armor stands: isFalling before the move, isInWater from the fluid surface

📊 Changes

2 files changed (+67 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+55 -6)
📝 crates/horizon-client/src/game/armor_stands.rs (+12 -1)

📄 Description

🤖 Opened by Federico's AI agent (Claude), not by Federico himself.

Fixes #3778. Checked: no open PR touches armor stand physics or bubble columns.

What and why

An armor stand over soul sand under water never rose: ArmorStand::tick was LivingEntity.travelInAir only, so water did nothing to it and bubble columns were ignored (items, ender pearls, the player and boats already took them).

Change

  • entities.rs: ArmorStand::in_water; tick takes in_water and a push callback. After the move the blocks the stand is inside push it (Entity.move's checkInsideBlocks, before the friction), then in water travelInWater's 0.8 slowdown and getFluidFallingAdjustedMovement (gravity / 16), in air the unchanged gravity 0.08 and drag 0.98.
  • game/armor_stands.rs: bubble_column_push is the callback.

Vanilla reference

LivingEntity.travel, LivingEntity.travelInWater, LivingEntity.getFluidFallingAdjustedMovement, Entity.move (applyEffectsFromBlocks), BubbleColumnBlock.entityInside, Entity.onInsideBubbleColumn.

Not in this PR

Flowing water pushing a stand (updateInWaterStateAndDoFluidPushing) and the above-the-column push (onAboveBubbleColumn).

Testing

With horizon-ctl: a soul sand and water column with glass around it, an armor stand summoned in it. Before: it stays at its spawn height. After: it rises (92.0 → 94.5 → 98.5 in three seconds), then falls back past the top of the column. A stand on the ground keeps its old physics (air path unchanged).

pr_ready --quick results follow in a comment.

🤖 Generated with Claude Code


🔄 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/3782 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/armor-stand-bubble-column` --- ### 📝 Commits (2) - [`8b5145e`](https://github.com/horizon-rust/horizon/commit/8b5145eaa5fac3744533f601a2406666b7f5ab29) Armor stands: bubble columns push them, and water slows and floats them - [`bc5fd42`](https://github.com/horizon-rust/horizon/commit/bc5fd427abe5525841f24feca00e68865ca95572) Armor stands: isFalling before the move, isInWater from the fluid surface ### 📊 Changes **2 files changed** (+67 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+55 -6) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+12 -1) </details> ### 📄 Description > 🤖 Opened by Federico's AI agent (Claude), not by Federico himself. Fixes #3778. Checked: no open PR touches armor stand physics or bubble columns. ## What and why An armor stand over soul sand under water never rose: `ArmorStand::tick` was `LivingEntity.travelInAir` only, so water did nothing to it and bubble columns were ignored (items, ender pearls, the player and boats already took them). ## Change - `entities.rs`: `ArmorStand::in_water`; `tick` takes `in_water` and a `push` callback. After the move the blocks the stand is inside push it (`Entity.move`'s `checkInsideBlocks`, before the friction), then in water `travelInWater`'s 0.8 slowdown and `getFluidFallingAdjustedMovement` (gravity / 16), in air the unchanged gravity 0.08 and drag 0.98. - `game/armor_stands.rs`: `bubble_column_push` is the callback. ## Vanilla reference `LivingEntity.travel`, `LivingEntity.travelInWater`, `LivingEntity.getFluidFallingAdjustedMovement`, `Entity.move` (`applyEffectsFromBlocks`), `BubbleColumnBlock.entityInside`, `Entity.onInsideBubbleColumn`. ## Not in this PR Flowing water pushing a stand (`updateInWaterStateAndDoFluidPushing`) and the above-the-column push (`onAboveBubbleColumn`). ## Testing With `horizon-ctl`: a soul sand and water column with glass around it, an armor stand summoned in it. Before: it stays at its spawn height. After: it rises (92.0 → 94.5 → 98.5 in three seconds), then falls back past the top of the column. A stand on the ground keeps its old physics (air path unchanged). `pr_ready --quick` results follow in a comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:02 +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#5215
No description provided.