[PR #4304] [MERGED] Lift the thrown eye of ender by the item ground transform #5552

Closed
opened 2026-11-03 05:13:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4304
Author: @MSedgeMC
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/eye-of-ender-lift


📝 Commits (1)

  • 57eac62 Lift the thrown eye of ender by the item ground transform

📊 Changes

1 file changed (+80 additions, -20 deletions)

View changed files

📝 crates/horizon-client/src/game/end.rs (+80 -20)

📄 Description

Fixes #4303.

Vanilla registers eye_of_ender with ThrownItemRenderer<>(context, 1.0F, true), whose submit only scales and billboards — the lift comes from the item model. item/ender_eye parents item/generated with no display override, so ground: {translation: [0, 2, 0], scale: [0.5, 0.5, 0.5]} applies: ItemTransform.apply composes translate(t) -> scale(0.5) -> translate(-0.5), which puts the 0.125 outside the scale, along the camera's up axis. Horizon's eye_geometry in game/end.rs centred the billboard on the entity, so the eye drew 0.125 blocks low.

One file: the quad maths moves into eye_quad, with GROUND_LIFT named so it cannot drift if the half extent changes, and the lift applied along up.normalize() rather than world Y.

What is proven: both tests ran on a build box that has the pinned 26.3 resources prepared — cargo test -p horizon-client --bin horizon-client eye_ -> 2 passed. One pins the offset and the size (centre at y = 100.125, half extent 0.25, light unchanged); the other uses a tilted camera axis, so a wrong centre.y += 0.125 fails by 0.088. The vanilla chain was re-read independently from the jar, including the constructor arguments and the transform composition.

What is not proven: no screenshot, and pr_ready was not run on this branch — CI's verify is the workspace check.

Two pre-existing limits, unchanged here: the billboard still ignores resource-pack display transforms (it hard-codes vanilla's default), and the light constant it uses is Horizon's existing full-bright value rather than vanilla's packed End light.

Sibling of #4275 (same bug, other call site).


🔄 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/4304 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/eye-of-ender-lift` --- ### 📝 Commits (1) - [`57eac62`](https://github.com/horizon-rust/horizon/commit/57eac62cd2a8fc55cbc6d6d33c2901c196b1e5d4) Lift the thrown eye of ender by the item ground transform ### 📊 Changes **1 file changed** (+80 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/end.rs` (+80 -20) </details> ### 📄 Description Fixes #4303. Vanilla registers `eye_of_ender` with `ThrownItemRenderer<>(context, 1.0F, true)`, whose `submit` only scales and billboards — the lift comes from the item model. `item/ender_eye` parents `item/generated` with no display override, so `ground: {translation: [0, 2, 0], scale: [0.5, 0.5, 0.5]}` applies: `ItemTransform.apply` composes `translate(t) -> scale(0.5) -> translate(-0.5)`, which puts the 0.125 outside the scale, along the camera's up axis. Horizon's `eye_geometry` in `game/end.rs` centred the billboard on the entity, so the eye drew 0.125 blocks low. One file: the quad maths moves into `eye_quad`, with `GROUND_LIFT` named so it cannot drift if the half extent changes, and the lift applied along `up.normalize()` rather than world Y. **What is proven:** both tests ran on a build box that has the pinned 26.3 resources prepared — `cargo test -p horizon-client --bin horizon-client eye_` -> 2 passed. One pins the offset and the size (centre at y = 100.125, half extent 0.25, light unchanged); the other uses a tilted camera axis, so a wrong `centre.y += 0.125` fails by 0.088. The vanilla chain was re-read independently from the jar, including the constructor arguments and the transform composition. **What is not proven:** no screenshot, and `pr_ready` was not run on this branch — CI's `verify` is the workspace check. Two pre-existing limits, unchanged here: the billboard still ignores resource-pack display transforms (it hard-codes vanilla's default), and the light constant it uses is Horizon's existing full-bright value rather than vanilla's packed End light. Sibling of #4275 (same bug, other call site). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:21 +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#5552
No description provided.