[PR #2406] [MERGED] Players don't climb while flying, and open trapdoors over ladders are climbable #4286

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2406
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/flying-climbable


📝 Commits (2)

  • 54b1c4f Make climbing follow vanilla: no climbing while flying, open trapdoors over ladders climb
  • 9b49a0b Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

1 file changed (+40 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/motion.rs (+40 -21)

📄 Description

What and why

Two climbing mistakes in the player's movement:

  • Flying in creative through scaffolding, ladders or vines slowed the player to the climbing speed cap (0.15), because Horizon treated the flying player as climbing.
  • An open trapdoor above a ladder facing the same way was not climbable, so the player fell through it.

MotionWorld::climbable now returns false while flying and otherwise asks the existing horizon_world::climbing::on_climbable, which already had the trapdoor rule and the gliding exception but was never called. The trapdoor, climbable and glide-through tags are loaded into a ClimbingRegistry with the other motion tables.

This also covers a player on the server thread, since it uses the same movement code.

Vanilla reference

  • Player.onClimbable: abilities.flying ? false : super.onClimbable().
  • LivingEntity.onClimbable and LivingEntity.trapdoorUsableAsLadder: open trapdoor with a ladder of the same FACING below it; CAN_GLIDE_THROUGH blocks do not count while fall flying.

Self-check

cargo check -p horizon-client passes.


🔄 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/2406 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/flying-climbable` --- ### 📝 Commits (2) - [`54b1c4f`](https://github.com/horizon-rust/horizon/commit/54b1c4f9415adc0bf42585e1e1d7c5022521cf83) Make climbing follow vanilla: no climbing while flying, open trapdoors over ladders climb - [`9b49a0b`](https://github.com/horizon-rust/horizon/commit/9b49a0b7270a47abee1e3ff8c8f9e8e2073339f7) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **1 file changed** (+40 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/motion.rs` (+40 -21) </details> ### 📄 Description ## What and why Two climbing mistakes in the player's movement: - Flying in creative through scaffolding, ladders or vines slowed the player to the climbing speed cap (0.15), because Horizon treated the flying player as climbing. - An open trapdoor above a ladder facing the same way was not climbable, so the player fell through it. `MotionWorld::climbable` now returns false while flying and otherwise asks the existing `horizon_world::climbing::on_climbable`, which already had the trapdoor rule and the gliding exception but was never called. The trapdoor, climbable and glide-through tags are loaded into a `ClimbingRegistry` with the other motion tables. This also covers a player on the server thread, since it uses the same movement code. ## Vanilla reference - `Player.onClimbable`: `abilities.flying ? false : super.onClimbable()`. - `LivingEntity.onClimbable` and `LivingEntity.trapdoorUsableAsLadder`: open trapdoor with a ladder of the same `FACING` below it; `CAN_GLIDE_THROUGH` blocks do not count while fall flying. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:04 +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#4286
No description provided.