[PR #7552] Fix armor stand climbing movement #7665

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

📋 Pull Request Information

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

Base: main ← Head: fix/armor-stand-climbing


📝 Commits (2)

  • 3199c1a Fix armor stand climbing movement
  • fb83f2f Merge main into armor stand climbing fix

📊 Changes

4 files changed (+252 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+181 -2)
📝 crates/horizon-client/src/entities/fluids.rs (+36 -4)
📝 crates/horizon-client/src/game/armor_stands.rs (+1 -0)
📝 tools/command_exec_corpus.py (+34 -0)

📄 Description

🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

What and why

Fixes #7534. Armor stands now apply the LivingEntity air-travel climb clamp before moving and the vertical lift after a horizontal collision on a climbable block. The predicate uses the loaded climbing tags and matching open-trapdoor/ladder facing rules, queried again at the position after movement. Gravity and drag still follow the lift.

Adds block integration coverage and native command cases for ladders, supported vines, twisting/weeping vine plants, matching/mismatched open trapdoors, and air/wall controls, including horizontal pushes. Fall-distance NBT output, powder-snow state integration and spider AI remain outside this change.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

Java 26.3 ArmorStand.travel delegates to LivingEntity.travel when physics is enabled. LivingEntity.handleOnClimbable resets fall distance and clamps X/Z to ±double(0.15f), Y to at least -double(0.15f); its slide suppression requires Player. handleRelativeFrictionAndCalculateMovement applies Y=0.2 after a horizontal collision while on a climbable block. travelInAir then applies gravity and friction. The existing registered climbing predicate supplies the tag and trapdoor rules.

The native command corpus checks Pos, Motion, OnGround and Health at ticks 1, 2, 3, 5, 10, 20, 30 and 40. Focused native Game command execution now matches fresh official Java 26.3 on 672/672 observations across 21 scenes. All entity reads succeeded; no missing-entity or missing-field failures were counted as successful controls.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick on a local runner, against origin/main at 31f83499b, 8 min 53 s)

Check Result
Scope ✅ 4 files, +252 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (40 s)
rustfmt ✅ (6 s)
clippy ✅ (1 min 44 s)
tests: horizon-client, horizon-client-lib ✅ 2208 passed (6 min 10 s)
doc tests ✅ 0 passed (3 s)
content root tests ➖ content root untouched
mod API up to date ✅ (10 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The focused climbing_uses_actual_blocks_and_post_collision_position test also passed with HORIZON_TEST_RESOURCES pointing at the prepared loader fixture (not skipped).

🤖 Generated with Codex.


🔄 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/7552 **Author:** [@TheMrZZ](https://github.com/TheMrZZ) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/armor-stand-climbing` --- ### 📝 Commits (2) - [`3199c1a`](https://github.com/horizon-rust/horizon/commit/3199c1a4fb122efafcfd48acf569c60ea021179d) Fix armor stand climbing movement - [`fb83f2f`](https://github.com/horizon-rust/horizon/commit/fb83f2f20e8dac3ec20388fd14666a5d794a1af8) Merge main into armor stand climbing fix ### 📊 Changes **4 files changed** (+252 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+181 -2) 📝 `crates/horizon-client/src/entities/fluids.rs` (+36 -4) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+1 -0) 📝 `tools/command_exec_corpus.py` (+34 -0) </details> ### 📄 Description > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. ## What and why Fixes #7534. Armor stands now apply the LivingEntity air-travel climb clamp before moving and the vertical lift after a horizontal collision on a climbable block. The predicate uses the loaded climbing tags and matching open-trapdoor/ladder facing rules, queried again at the position after movement. Gravity and drag still follow the lift. Adds block integration coverage and native command cases for ladders, supported vines, twisting/weeping vine plants, matching/mismatched open trapdoors, and air/wall controls, including horizontal pushes. Fall-distance NBT output, powder-snow state integration and spider AI remain outside this change. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference Java 26.3 `ArmorStand.travel` delegates to `LivingEntity.travel` when physics is enabled. `LivingEntity.handleOnClimbable` resets fall distance and clamps X/Z to ±double(0.15f), Y to at least -double(0.15f); its slide suppression requires Player. `handleRelativeFrictionAndCalculateMovement` applies Y=0.2 after a horizontal collision while on a climbable block. `travelInAir` then applies gravity and friction. The existing registered climbing predicate supplies the tag and trapdoor rules. The native command corpus checks Pos, Motion, OnGround and Health at ticks 1, 2, 3, 5, 10, 20, 30 and 40. Focused native Game command execution now matches fresh official Java 26.3 on **672/672 observations across 21 scenes**. All entity reads succeeded; no missing-entity or missing-field failures were counted as successful controls. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on a local runner, against origin/main at 31f83499b, 8 min 53 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +252 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (40 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (1 min 44 s) | | tests: horizon-client, horizon-client-lib | ✅ 2208 passed (6 min 10 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (10 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The focused `climbing_uses_actual_blocks_and_post_collision_position` test also passed with `HORIZON_TEST_RESOURCES` pointing at the prepared loader fixture (not skipped). 🤖 Generated with [Codex](https://openai.com/codex/). --- <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#7665
No description provided.