[PR #5932] [MERGED] Run Frost Walker location effects for armor stands #6570

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5932
Author: @oskal675-design
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/armor-stand-frost-walker


📝 Commits (1)

  • 16a9935 Run armor stand location enchantments on equipment and movement

📊 Changes

6 files changed (+265 additions, -39 deletions)

View changed files

📝 crates/horizon-client/src/entities.rs (+9 -0)
📝 crates/horizon-client/src/game/armor_stands.rs (+26 -9)
📝 crates/horizon-client/src/game/enchant_effects.rs (+100 -29)
📝 crates/horizon-client/src/game/piston_push.rs (+6 -0)
📝 crates/horizon-world/src/block_state_properties.rs (+1 -1)
➕ tools/test_armor_stand_frost_parity.py (+123 -0)

📄 Description

🤖 Opened by oskal675-design's AI agent (Codex, GPT-6.1), not by oskal675-design personally.

What and why

Armor stands never ran location-based enchantment effects, so putting Frost Walker boots on a grounded stand left the surrounding water unchanged. Run the shared replace-disk evaluator when the stand changes blocks, lands after falling, or equips a changed active slot. An unrelated equipment change or an idle tick does not reapply the boots. Piston movement also updates the stand's ground flag, preventing freezing while unsupported.

Fixes #5838.

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

Read the actual 26.3 methods with tools/rea_vanilla.py: LivingEntity.baseTick, onChangedBlock, checkFallDamage, tick, collectEquipmentChanges; EnchantmentHelper.runLocationChangedEffects, runIterationOnEquipment, runIterationOnItem; Entity.move; and ItemStack.isBroken/isDamageableItem.

python3 tools/test_armor_stand_frost_parity.py runs actual vanilla and Horizon dedicated servers with vanilla protocol clients. Its 17 results cover levels I/II, block changes, landing, idle ticks, an unrelated helmet change, wrong-slot/plain/broken boots, unbreakable boots and custom durability, spawning already equipped, and piston movement. In the unsupported piston control, vanilla produces no ice; the patch preserves that behavior.

The ledger check reports no new stale citations. The new onChangedBlock citation also exposes two inferred caller gaps in the existing partial LivingEntity.baseTick/checkFallDamage mappings (border_damage/landing_dust), outside the armor-stand tick path changed here.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on omarchy, against origin/main at 5bbecdc49, 3 min 8 s)

Check Result
Scope ✅ 6 files, +266 −40
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 515 passed (20 s)
rustfmt ✅ (6 s)
clippy ✅ (6 s)
tests: horizon-client, horizon-world ✅ 2043 passed (2 min 33 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 328 affected, to run in CI (--quick): ambient_sound, armor_stand_frost, arrow, audio_attributes, auto_jump, blending, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_survival and 316 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Also removed one needless borrow in the property sort introduced by main's #5915, so the required Clippy check passes on Rust 1.99.1. This does not change sorting behavior.

Additional verification: the real-server differential above; tools/port_ledger.py check --base origin/main; and the default integrated server in fresh isolated homes (0 frozen blocks before, 44 after equipping Frost Walker II on a grounded stand).

Screenshots

Same integrated-server fixture before and after. Before: 0 frosted ice / 142 water; after: 44 frosted ice / 98 water.

Before
After

Maintainer edits are enabled.

🤖 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/5932 **Author:** [@oskal675-design](https://github.com/oskal675-design) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/armor-stand-frost-walker` --- ### 📝 Commits (1) - [`16a9935`](https://github.com/horizon-rust/horizon/commit/16a9935c6a4f48665e6a01eeb25e0c102f39e1a8) Run armor stand location enchantments on equipment and movement ### 📊 Changes **6 files changed** (+265 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entities.rs` (+9 -0) 📝 `crates/horizon-client/src/game/armor_stands.rs` (+26 -9) 📝 `crates/horizon-client/src/game/enchant_effects.rs` (+100 -29) 📝 `crates/horizon-client/src/game/piston_push.rs` (+6 -0) 📝 `crates/horizon-world/src/block_state_properties.rs` (+1 -1) ➕ `tools/test_armor_stand_frost_parity.py` (+123 -0) </details> ### 📄 Description > 🤖 Opened by oskal675-design's AI agent (Codex, GPT-6.1), not by oskal675-design personally. ## What and why Armor stands never ran location-based enchantment effects, so putting Frost Walker boots on a grounded stand left the surrounding water unchanged. Run the shared replace-disk evaluator when the stand changes blocks, lands after falling, or equips a changed active slot. An unrelated equipment change or an idle tick does not reapply the boots. Piston movement also updates the stand's ground flag, preventing freezing while unsupported. Fixes #5838. ## 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 Read the actual 26.3 methods with `tools/rea_vanilla.py`: `LivingEntity.baseTick`, `onChangedBlock`, `checkFallDamage`, `tick`, `collectEquipmentChanges`; `EnchantmentHelper.runLocationChangedEffects`, `runIterationOnEquipment`, `runIterationOnItem`; `Entity.move`; and `ItemStack.isBroken`/`isDamageableItem`. `python3 tools/test_armor_stand_frost_parity.py` runs actual vanilla and Horizon dedicated servers with vanilla protocol clients. Its 17 results cover levels I/II, block changes, landing, idle ticks, an unrelated helmet change, wrong-slot/plain/broken boots, unbreakable boots and custom durability, spawning already equipped, and piston movement. In the unsupported piston control, vanilla produces no ice; the patch preserves that behavior. The ledger check reports no new stale citations. The new `onChangedBlock` citation also exposes two inferred caller gaps in the existing partial `LivingEntity.baseTick`/`checkFallDamage` mappings (`border_damage`/`landing_dust`), outside the armor-stand tick path changed here. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on omarchy, against origin/main at 5bbecdc49, 3 min 8 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +266 −40 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 515 passed (20 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (6 s) | | tests: horizon-client, horizon-world | ✅ 2043 passed (2 min 33 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 328 affected, to run in CI (--quick): ambient_sound, armor_stand_frost, arrow, audio_attributes, auto_jump, blending, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_survival and 316 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Also removed one needless borrow in the property sort introduced by main's #5915, so the required Clippy check passes on Rust 1.99.1. This does not change sorting behavior. Additional verification: the real-server differential above; `tools/port_ledger.py check --base origin/main`; and the default integrated server in fresh isolated homes (0 frozen blocks before, 44 after equipping Frost Walker II on a grounded stand). ## Screenshots Same integrated-server fixture before and after. Before: 0 frosted ice / 142 water; after: 44 frosted ice / 98 water. ![Before](https://raw.githubusercontent.com/oskal675-design/horizon/1b0d2defcd199b73ada804b296d31d63a8934384/before.png) ![After](https://raw.githubusercontent.com/oskal675-design/horizon/1b0d2defcd199b73ada804b296d31d63a8934384/after.png) Maintainer edits are enabled. 🤖 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>
bsakaguchi 2026-11-03 06:23:12 +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#6570
No description provided.