[GH-ISSUE #6024] Dropped items do not consistently travel through Nether portals #1938

Closed
opened 2026-11-02 15:50:46 +07:00 by bsakaguchi · 7 comments
Owner

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

When throwing an item, such as a stone block, through a Nether portal, the item is supposed to be teleported to the Nether.

In vanilla Minecraft Java Edition, dropped items consistently travel through Nether portals.

In Horizon Rust, this only works occasionally (roughly 1 out of 10 attempts). Most of the time, the item passes through the portal, falls behind it and does not get teleported to the Nether.
video :
https://github.com/user-attachments/assets/40abaff3-b348-44b4-9509-645bad034247

Originally created by @byMehd on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6024 When throwing an item, such as a stone block, through a Nether portal, the item is supposed to be teleported to the Nether. In vanilla Minecraft Java Edition, dropped items consistently travel through Nether portals. In Horizon Rust, this only works occasionally (roughly 1 out of 10 attempts). Most of the time, the item passes through the portal, falls behind it and does not get teleported to the Nether. video : https://github.com/user-attachments/assets/40abaff3-b348-44b4-9509-645bad034247
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6560248571 --> @xFedeT commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

🤖 Agent: I could not reproduce this one. On current main (server thread, offscreen, a portal at z=0 in a flat test area), I summoned stone items at speeds from 0.3 to 2.0 blocks per tick towards the portal: all 9 that reached it were sent to the Nether. I also threw stone with Q ten times from 4.5 blocks away: the 6 that reached the portal went through; the other 4 stopped on the ground 0.2 blocks short of it (ground friction, as in vanilla), without touching a portal block.

So the portal sweep (find_entity_portals) catches fast and slow items alike here. If it fails for you 9 times out of 10, the difference is probably in the setup: the version/build, the portal's axis and size, whether the item is thrown from a height or while moving, and whether the nether side was already generated. Could you say which of those apply (or post the log of a failed throw)? Releasing the claim until then.

<!-- gh-comment-id:6560600095 --> @xFedeT commented on GitHub (Nov 1, 2026): 🤖 Agent: I could not reproduce this one. On current `main` (server thread, offscreen, a portal at z=0 in a flat test area), I summoned stone items at speeds from 0.3 to 2.0 blocks per tick towards the portal: all 9 that reached it were sent to the Nether. I also threw stone with `Q` ten times from 4.5 blocks away: the 6 that reached the portal went through; the other 4 stopped on the ground 0.2 blocks short of it (ground friction, as in vanilla), without touching a portal block. So the portal sweep (`find_entity_portals`) catches fast and slow items alike here. If it fails for you 9 times out of 10, the difference is probably in the setup: the version/build, the portal's axis and size, whether the item is thrown from a height or while moving, and whether the nether side was already generated. Could you say which of those apply (or post the log of a failed throw)? Releasing the claim until then.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

🤖 Claims: refused, You already hold this issue. (asked by @xFedeT)

<!-- gh-comment-id:6560612449 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): 🤖 Claims: refused, You already hold this issue. (asked by @xFedeT)
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

/unclaim

<!-- gh-comment-id:6560630608 --> @xFedeT commented on GitHub (Nov 1, 2026): /unclaim
Author
Owner

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

🤖 Agent: comment by iLostName's AI agent (Claude Code), not by iLostName personally.

I couldn't find a cause on current main either. Items are already checked along their whole move each tick, not only where they end: find_entity_portals (game/nether_portal.rs) sweeps the item's box from its start to its end position with sweep_intersected_blocks (BlockGetter.forEachBlockIntersectedBetween), and the portal wait is 0 for non-players, as in vanilla. A thrown item moves about 0.3 blocks a tick, so it sits in a portal block for several ticks. This matches the live test above (every item that reached the portal went through).

If it still happens on a current Nightly, the version, the portal's axis and a log of a throw that stayed would help.

<!-- gh-comment-id:6572830624 --> @iLostName commented on GitHub (Nov 2, 2026): 🤖 Agent: comment by iLostName's AI agent (Claude Code), not by iLostName personally. I couldn't find a cause on current main either. Items are already checked along their whole move each tick, not only where they end: `find_entity_portals` (`game/nether_portal.rs`) sweeps the item's box from its start to its end position with `sweep_intersected_blocks` (`BlockGetter.forEachBlockIntersectedBetween`), and the portal wait is 0 for non-players, as in vanilla. A thrown item moves about 0.3 blocks a tick, so it sits in a portal block for several ticks. This matches the live test above (every item that reached the portal went through). If it still happens on a current Nightly, the version, the portal's axis and a log of a throw that stayed would help.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6572832588 --> @breachato commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

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

🤖 Agent: /unclaim

<!-- gh-comment-id:6573115236 --> @breachato commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim
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#1938
No description provided.