[PR #2470] [MERGED] Use real eye heights in /execute and keep the anchor on positioned as #4347

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

📋 Pull Request Information

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

Base: main ← Head: fix/execute-eye-height-positioned-as


📝 Commits (2)

  • 4201fd2 Use real eye heights in /execute and keep the anchor on positioned as
  • c4d0cb1 A small armor stand's eyes are at 0.9875, and eye heights are floats

📊 Changes

1 file changed (+36 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/execute.rs (+36 -2)

📄 Description

What and why

Two fixes in /execute:

  • facing entity ... eyes, rotate ... facing entity ... eyes and anchored eyes used an eye height of 0 for every entity that is not a player or a mob (armor stands, item frames, boats, minecarts, items, projectiles and so on). They now use the entity type's eye height from entity-types.json; a small armor stand has half of it and a marker has none.
  • execute positioned as <entity> reset the anchor to the feet. It now keeps the current anchor. Only positioned <pos> resets it.

Vanilla reference

Entity.getEyeHeight / EntityType dimensions, ArmorStand.getDefaultDimensions, and ExecuteCommand (positioned as uses withPosition, positioned <pos> also calls withAnchor(FEET)).

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/2470 **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/execute-eye-height-positioned-as` --- ### 📝 Commits (2) - [`4201fd2`](https://github.com/horizon-rust/horizon/commit/4201fd23c0dda6ab5ff3624cc79e4c322800980c) Use real eye heights in /execute and keep the anchor on positioned as - [`c4d0cb1`](https://github.com/horizon-rust/horizon/commit/c4d0cb1ec0c686b4efba990964055795af0f2576) A small armor stand's eyes are at 0.9875, and eye heights are floats ### 📊 Changes **1 file changed** (+36 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/execute.rs` (+36 -2) </details> ### 📄 Description ## What and why Two fixes in `/execute`: - `facing entity ... eyes`, `rotate ... facing entity ... eyes` and `anchored eyes` used an eye height of 0 for every entity that is not a player or a mob (armor stands, item frames, boats, minecarts, items, projectiles and so on). They now use the entity type's eye height from `entity-types.json`; a small armor stand has half of it and a marker has none. - `execute positioned as <entity>` reset the anchor to the feet. It now keeps the current anchor. Only `positioned <pos>` resets it. ## Vanilla reference `Entity.getEyeHeight` / `EntityType` dimensions, `ArmorStand.getDefaultDimensions`, and `ExecuteCommand` (`positioned as` uses `withPosition`, `positioned <pos>` also calls `withAnchor(FEET)`). ## 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:30 +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#4347
No description provided.