[PR #2363] [MERGED] Make /tp facing look from the feet, or the eyes under anchored eyes #4243

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

📋 Pull Request Information

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

Base: main ← Head: fix/tp-facing-feet


📝 Commits (4)

  • 9aabeb3 Make /tp facing look from the feet, or the eyes under anchored eyes
  • fbdd04d Use armor stand, boat, cart and item eye heights for facing entity eyes
  • 50f9255 Merge remote-tracking branch 'origin/main' into HEAD
  • 361020f Merge main into fix/tp-facing-feet

📊 Changes

1 file changed (+18 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game/commands.rs (+18 -7)

📄 Description

What and why

/tp <targets> <pos> facing <pos|entity> turned the target as if it looked from 1.62 blocks above its feet, always. In vanilla the look starts at the command source's anchor, which is the feet unless the command runs anchored eyes, and then at the teleported entity's own eye height. So a target teleported to a spot and told to face a block at the same height looked a little down instead of straight ahead.

Now the look starts at the feet by default, at the target's eye height under anchored eyes, and the eyes anchor of facing entity <e> eyes uses that entity's eye height instead of a fixed 1.62.

Vanilla reference

  • LookAt.LookAtPosition and LookAt.LookAtEntity (target.lookAt(source.getAnchor(), ...))
  • Entity.lookAt (anchor.apply(this) as the origin)
  • EntityAnchorArgument.Anchor.apply (FEET: the point, EYES: plus getEyeHeight())

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/2363 **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/tp-facing-feet` --- ### 📝 Commits (4) - [`9aabeb3`](https://github.com/horizon-rust/horizon/commit/9aabeb39eee0dfe14a733f150d94703256576a43) Make /tp facing look from the feet, or the eyes under anchored eyes - [`fbdd04d`](https://github.com/horizon-rust/horizon/commit/fbdd04d8172a884dd281cdf8897a12744eff2976) Use armor stand, boat, cart and item eye heights for facing entity eyes - [`50f9255`](https://github.com/horizon-rust/horizon/commit/50f92554729046074bf2400f2598aa7962ff715f) Merge remote-tracking branch 'origin/main' into HEAD - [`361020f`](https://github.com/horizon-rust/horizon/commit/361020fc23e4ec0891e8f939761030d2b1c97f66) Merge main into fix/tp-facing-feet ### 📊 Changes **1 file changed** (+18 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands.rs` (+18 -7) </details> ### 📄 Description ## What and why `/tp <targets> <pos> facing <pos|entity>` turned the target as if it looked from 1.62 blocks above its feet, always. In vanilla the look starts at the command source's anchor, which is the feet unless the command runs `anchored eyes`, and then at the teleported entity's own eye height. So a target teleported to a spot and told to face a block at the same height looked a little down instead of straight ahead. Now the look starts at the feet by default, at the target's eye height under `anchored eyes`, and the `eyes` anchor of `facing entity <e> eyes` uses that entity's eye height instead of a fixed 1.62. ## Vanilla reference - `LookAt.LookAtPosition` and `LookAt.LookAtEntity` (`target.lookAt(source.getAnchor(), ...)`) - `Entity.lookAt` (`anchor.apply(this)` as the origin) - `EntityAnchorArgument.Anchor.apply` (FEET: the point, EYES: plus `getEyeHeight()`) ## 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:15:44 +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#4243
No description provided.