[GH-ISSUE #741] Hopper minecarts draw their hopper about 0.23 blocks too high #218

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

Originally created by @ludovic111 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/741

🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself.

Hopper minecarts draw their hopper too high.

cart_geometry in crates/horizon-client/src/game/minecarts.rs places every display block at offset 6 ((6.0 - 8.0) / 16.0 before the 0.75 scale). Vanilla 26.3 uses the cart's display offset: AbstractMinecartRenderer translates by (displayOffset - 8) / 16, and MinecartHopper.getDefaultDisplayOffset() returns 1 where every other minecart returns 6. So in Horizon the hopper sits 5/16 × 0.75 ≈ 0.23 blocks higher in its cart than in vanilla.

Found while adding minecart culling (#735), which uses the vanilla offset for the culling box only. A fix needs the per-kind offset in the render translation and a screenshot of a hopper minecart against vanilla.

🤖 Generated with Claude Code

Originally created by @ludovic111 on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/741 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Hopper minecarts draw their hopper too high. `cart_geometry` in `crates/horizon-client/src/game/minecarts.rs` places every display block at offset 6 (`(6.0 - 8.0) / 16.0` before the 0.75 scale). Vanilla 26.3 uses the cart's display offset: `AbstractMinecartRenderer` translates by `(displayOffset - 8) / 16`, and `MinecartHopper.getDefaultDisplayOffset()` returns 1 where every other minecart returns 6. So in Horizon the hopper sits 5/16 × 0.75 ≈ 0.23 blocks higher in its cart than in vanilla. Found while adding minecart culling (#735), which uses the vanilla offset for the culling box only. A fix needs the per-kind offset in the render translation and a screenshot of a hopper minecart against vanilla. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-02 15:37:23 +07:00
  • closed this issue
  • added the
    bug
    label
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#218
No description provided.