[GH-ISSUE #4303] Thrown eye of ender is drawn 0.125 blocks below where vanilla puts it #1269

Closed
opened 2026-11-02 15:45:34 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @MSedgeMC on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4303

A thrown eye of ender is drawn 0.125 blocks below where it belongs, so it looks like it is hanging under the entity rather than centred on it.

Vanilla registers eye_of_ender with ThrownItemRenderer<>(context, 1.0F, true) (EntityRenderers bootstrap lambda$static$13: new, fconst_1, iconst_1). ThrownItemRenderer.submit only does pushPose, scale(scale, scale, scale), rotate(cameraState.orientation), state.item.submit(...), popPose — there is no translate. The visible lift comes from the item model: assets/minecraft/models/item/ender_eye.json parents minecraft:item/generated with no display override, and generated.json has "ground": {"translation": [0, 2, 0], "scale": [0.5, 0.5, 0.5]}. ItemTransform$Deserializer multiplies that translation by 0.0625, and ItemTransform.apply composes translate(t) -> scale(s) -> translate(-0.5, -0.5, -0.5), so the 0.125 sits outside the 0.5 scale and the quad ends up 0.125 blocks along the camera's up axis, 0.5 blocks across.

Horizon draws the eye with its own billboard in game/end.rs (eye_geometry), which centres on the interpolated entity position and applies no offset, so it is 0.125 low. This is the same bug as the thrown snowball/egg/pearl report (#4130, fixed in #4275) at a second call site; the same lift applies here because the item inherits the default ground transform.

Related: #4130, #4275.

Originally created by @MSedgeMC on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4303 A thrown eye of ender is drawn 0.125 blocks below where it belongs, so it looks like it is hanging under the entity rather than centred on it. Vanilla registers `eye_of_ender` with `ThrownItemRenderer<>(context, 1.0F, true)` (`EntityRenderers` bootstrap `lambda$static$13`: `new`, `fconst_1`, `iconst_1`). `ThrownItemRenderer.submit` only does `pushPose`, `scale(scale, scale, scale)`, `rotate(cameraState.orientation)`, `state.item.submit(...)`, `popPose` — there is no translate. The visible lift comes from the item model: `assets/minecraft/models/item/ender_eye.json` parents `minecraft:item/generated` with no display override, and `generated.json` has `"ground": {"translation": [0, 2, 0], "scale": [0.5, 0.5, 0.5]}`. `ItemTransform$Deserializer` multiplies that translation by 0.0625, and `ItemTransform.apply` composes `translate(t) -> scale(s) -> translate(-0.5, -0.5, -0.5)`, so the 0.125 sits outside the 0.5 scale and the quad ends up 0.125 blocks along the camera's up axis, 0.5 blocks across. Horizon draws the eye with its own billboard in `game/end.rs` (`eye_geometry`), which centres on the interpolated entity position and applies no offset, so it is 0.125 low. This is the same bug as the thrown snowball/egg/pearl report (#4130, fixed in #4275) at a second call site; the same lift applies here because the item inherits the default ground transform. Related: #4130, #4275.
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#1269
No description provided.