[GH-ISSUE #3292] Sending entities through portals do not chunk load the other side like in vanilla #914

Closed
opened 2026-11-02 15:42:49 +07:00 by bsakaguchi · 1 comment
Owner

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

Version: 0.2.93 · OS: MacOS M2 (copied from the report)

What I did: Create a chunk loader using nether portals
What happened: When the item was sent through the nether portal, it didn't return. The other side of the portal wasn't getting loaded
What I expected: When an entity is sent through a portal, it should load the other side like in vanilla. Note that it should match vanilla behavior and send the chunk loading packet to the right chunk in case a portal is in multiple chunks.
Horizon version: 0.2.93
Also on the Nightly?: didn't try
OS, CPU, GPU: MacOS M2

Reported on Discord by DarkCows in #horizon-bugs · Discord thread
Tags: gameplay

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3292 **Version:** 0.2.93 · **OS:** MacOS M2 <sub>(copied from the report)</sub> > What I did: Create a chunk loader using nether portals > What happened: When the item was sent through the nether portal, it didn't return. The other side of the portal wasn't getting loaded > What I expected: When an entity is sent through a portal, it should load the other side like in vanilla. Note that it should match vanilla behavior and send the chunk loading packet to the right chunk in case a portal is in multiple chunks. > Horizon version: 0.2.93 > Also on the Nightly?: didn't try > OS, CPU, GPU: MacOS M2 Reported on Discord by **DarkCows** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565050601224798320) Tags: gameplay <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:42:49 +07:00
Author
Owner

@d3grando commented on GitHub (Oct 28, 2026):

🤖 Agent: I confirmed this on macOS. The cause is that the other dimension doesn't run while no player is in it. Horizon has no portal ticket. This comes from d3grando's AI agent (Claude Code), not from d3grando themselves.

Setup: MacBook Pro, Apple M5 Pro, macOS 26.6.2, main at 142388e1, single player on the server thread (the default), creative, seed 1, player in the Overworld.

What happens:

  1. I built an obsidian frame with nether_portal[axis=x] inside and summoned a diamond item in the portal (PickupDelay:32767).
  2. The item leaves the Overworld within 5 ticks. The Nether around the destination is generated and the item lands there. data/horizon_portal_arrivals.dat is empty again, and the item is saved in the_nether/entities/r.0.0.mca with its PortalCooldown.
  3. After that, nothing in the Nether runs. 650 ticks later the diamond hasn't come back to the Overworld, and it stays in the saved chunk until a player goes to the Nether.

Vanilla 26.3 (from javap -c on the client jar):

  • Entity.placePortalTicket(BlockPos) adds TicketType.PORTAL with addTicketWithRadius(PORTAL, ChunkPos.containing(pos), 3).
  • TicketType.PORTAL is register("portal", 300L, 15): 300 ticks, and the flags include simulation and keeping the dimension active.
  • So the chunks around the exit stay loaded and ticking for 15 seconds in a dimension with no players. The item ticks there, its portal cooldown runs out, and it goes back through. Each trip renews a ticket on the other side, which is how portal chunk loaders work. The ticket goes on the chunk that contains the exit position, which is the reporter's point about portals that span chunks.

Horizon (crates/horizon-client/src/game/nether_portal.rs):

  • send_through_portal saves the entity into portals.arrivals.
  • arrival_chunks asks streaming to light the destination ("vanilla's portal ticket … keeps the area loaded without a player"), and resolve_arrivals lands the entity once that area is lit.
  • So the destination is loaded long enough to place the entity, but it never ticks. ticket_levels.rs (Sources) has players and forced chunks only, no portal tickets, and only the player's dimension is simulated.

This isn't a small fix. It needs a dimension without players to tick, for the area under a 300-tick portal ticket of radius 3. /forceload in another dimension probably has the same gap; I didn't test it.

<!-- gh-comment-id:6483386830 --> @d3grando commented on GitHub (Oct 28, 2026): 🤖 Agent: I confirmed this on macOS. The cause is that the other dimension doesn't run while no player is in it. Horizon has no portal ticket. This comes from d3grando's AI agent (Claude Code), not from d3grando themselves. **Setup:** MacBook Pro, Apple M5 Pro, macOS 26.6.2, `main` at 142388e1, single player on the server thread (the default), creative, seed 1, player in the Overworld. **What happens:** 1. I built an obsidian frame with `nether_portal[axis=x]` inside and summoned a diamond item in the portal (`PickupDelay:32767`). 2. The item leaves the Overworld within 5 ticks. The Nether around the destination is generated and the item lands there. `data/horizon_portal_arrivals.dat` is empty again, and the item is saved in `the_nether/entities/r.0.0.mca` with its `PortalCooldown`. 3. After that, nothing in the Nether runs. 650 ticks later the diamond hasn't come back to the Overworld, and it stays in the saved chunk until a player goes to the Nether. **Vanilla 26.3** (from `javap -c` on the client jar): - `Entity.placePortalTicket(BlockPos)` adds `TicketType.PORTAL` with `addTicketWithRadius(PORTAL, ChunkPos.containing(pos), 3)`. - `TicketType.PORTAL` is `register("portal", 300L, 15)`: 300 ticks, and the flags include simulation and keeping the dimension active. - So the chunks around the exit stay loaded and *ticking* for 15 seconds in a dimension with no players. The item ticks there, its portal cooldown runs out, and it goes back through. Each trip renews a ticket on the other side, which is how portal chunk loaders work. The ticket goes on the chunk that contains the exit position, which is the reporter's point about portals that span chunks. **Horizon** (`crates/horizon-client/src/game/nether_portal.rs`): - `send_through_portal` saves the entity into `portals.arrivals`. - `arrival_chunks` asks streaming to light the destination ("vanilla's portal ticket … keeps the area loaded without a player"), and `resolve_arrivals` lands the entity once that area is lit. - So the destination is loaded long enough to place the entity, but it never ticks. `ticket_levels.rs` (`Sources`) has players and forced chunks only, no portal tickets, and only the player's dimension is simulated. This isn't a small fix. It needs a dimension without players to tick, for the area under a 300-tick portal ticket of radius 3. `/forceload` in another dimension probably has the same gap; I didn't test it.
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#914
No description provided.