[PR #6283] [CLOSED] A ridden horse floats in deep water instead of sinking #6766

Closed
opened 2026-11-03 06:26:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6283
Author: @xFedeT
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/ridden-horse-swim


📝 Commits (1)

  • 9133944 A ridden horse, mule, donkey, zombie horse or camel floats in deep water

📊 Changes

1 file changed (+44 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/mobs/living.rs (+44 -0)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally.

Fixes #6147

What was wrong

LivingEntity.travelInFluid ends with floatInLiquidWhileRidden(FluidTags.ENTITY_FLOATABLE): a vehicle whose type is in #can_float_while_ridden (horse, zombie horse, mule, donkey, camel, camel husk), in fluid deeper than its jump threshold, gets +0.04 vertical speed each tick, which is what keeps a ridden horse swimming. Horizon had it for the player's own travel (horizon-world living_fluid), but the mobs' travel_in_fluid (mobs/living.rs) never did, so a ridden horse only sank.

What changes

travel_in_fluid adds +0.04 to the vertical speed after the fluid movement when floats_while_ridden(): the mob carries a rider (the driving player or another mob), is one of those six species, and max(water, lava) is deeper than fluid_jump_threshold().

Verification

a_ridden_horse_floats_in_deep_water_and_a_bare_one_does_not: a horse floats with a rider in water deeper than the threshold, not bare, not in shallow water, and a ridden pig does not. Clippy and rustfmt clean for the changed file (the only clippy error is the existing needless_borrow in horizon-world). I did not swim a horse in game.

Not done

Nothing else about ridden horses in fluid (the strider and nautilus movement) is touched.

🤖 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/6283 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/ridden-horse-swim` --- ### 📝 Commits (1) - [`9133944`](https://github.com/horizon-rust/horizon/commit/9133944ca119955fb406a6e244ee09749bdb58ca) A ridden horse, mule, donkey, zombie horse or camel floats in deep water ### 📊 Changes **1 file changed** (+44 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/living.rs` (+44 -0) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Fixes #6147 ## What was wrong `LivingEntity.travelInFluid` ends with `floatInLiquidWhileRidden(FluidTags.ENTITY_FLOATABLE)`: a vehicle whose type is in `#can_float_while_ridden` (horse, zombie horse, mule, donkey, camel, camel husk), in fluid deeper than its jump threshold, gets `+0.04` vertical speed each tick, which is what keeps a ridden horse swimming. Horizon had it for the player's own travel (`horizon-world` `living_fluid`), but the mobs' `travel_in_fluid` (`mobs/living.rs`) never did, so a ridden horse only sank. ## What changes `travel_in_fluid` adds `+0.04` to the vertical speed after the fluid movement when `floats_while_ridden()`: the mob carries a rider (the driving player or another mob), is one of those six species, and `max(water, lava)` is deeper than `fluid_jump_threshold()`. ## Verification `a_ridden_horse_floats_in_deep_water_and_a_bare_one_does_not`: a horse floats with a rider in water deeper than the threshold, not bare, not in shallow water, and a ridden pig does not. Clippy and rustfmt clean for the changed file (the only clippy error is the existing `needless_borrow` in `horizon-world`). I did not swim a horse in game. ## Not done Nothing else about ridden horses in fluid (the strider and nautilus movement) is touched. 🤖 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 06:26:17 +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#6766
No description provided.