[GH-ISSUE #7067] Minecarts can pass through the world border #3134

Closed
opened 2026-11-03 04:06:08 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @byMehd on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7067

Originally assigned to: @Akirabane on GitHub.

When riding a minecart and moving towards the world border, the minecart can pass through it with the player still inside.

In vanilla Minecraft Java Edition, the world border prevents minecarts and players from crossing it.

In Horizon, minecarts can cross the world border instead of being stopped.

Related issue (same bug with boats):
https://github.com/horizon-rust/horizon/issues/7065

Tested on:

Originally created by @byMehd on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7067 Originally assigned to: @Akirabane on GitHub. When riding a minecart and moving towards the world border, the minecart can pass through it with the player still inside. In vanilla Minecraft Java Edition, the world border prevents minecarts and players from crossing it. In Horizon, minecarts can cross the world border instead of being stopped. **Related issue (same bug with boats):** https://github.com/horizon-rust/horizon/issues/7065 Tested on: - OS: Windows PC - Horizon version: Nightly `c9d474d` https://github.com/user-attachments/assets/d3b857b8-196e-4421-8945-35242278973d
Author
Owner

@Akirabane commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

Cause: move_cart (crates/horizon-client/src/game/minecarts.rs) builds EntityCollisions with border: None, so a cart's move never meets the world border. The player passes Some((geometry, [x, z])), and vanilla's CollisionGetter.getBlockCollisions adds borderCollision for every entity.

Plan: pass the level's border geometry and the cart's x/z (as piston_push.rs already does via EntityCollisions::with_border), add a test that a cart pushed toward the border stops at its wall. I will keep clear of #7065 (boats), which is a different file.

Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.

<!-- gh-comment-id:6575149126 --> @Akirabane commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Cause: `move_cart` (`crates/horizon-client/src/game/minecarts.rs`) builds `EntityCollisions` with `border: None`, so a cart's move never meets the world border. The player passes `Some((geometry, [x, z]))`, and vanilla's `CollisionGetter.getBlockCollisions` adds `borderCollision` for every entity. Plan: pass the level's border geometry and the cart's x/z (as `piston_push.rs` already does via `EntityCollisions::with_border`), add a test that a cart pushed toward the border stops at its wall. I will keep clear of #7065 (boats), which is a different file. > Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.
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#3134
No description provided.