[GH-ISSUE #1525] [server-thread] Force-loaded chunks stop ticking when the player leaves their dimension #481

Closed
opened 2026-11-02 15:39:24 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1525

🤖 Filed by an AI assistant (Codex).

Tested 9dd9a836991e263b51d0cec0f690d40a0b09eecc, explicit modes and equivalent disposable worlds. Confirmed in server-thread; old singleplayer also stops.

  1. In Nether chunk [0,0], /forceload add 0 0.
  2. Start a furnace with one raw iron and coal; the reduction explicitly sets cooking_total_time:200 and cooking_time_spent:0.
  3. Immediately return to the Overworld, wait over 400 ticks, then inspect the furnace before and after returning.

Expected: the forced chunk stays loaded and the furnace produces one ingot while the player is away. Native Minecraft 26.3 does this.

Actual: the away query says the position is not loaded. Returning finds raw iron and only about forty cooking ticks spent. Staying nearby lets it finish normally.

Repeated Horizon reductions (cargo-forced-{a,b,c}) include successful nearby and same-dimension/distant-player controls. Native c verifies raw input and a 200-tick cooking duration before departure, then the completed ingot while the player remains in the Overworld. Native a/b are excluded as away-processing controls because omitted timing NBT makes the first recipe finish before departure.

Driver: tools/singleplayer_forced_chunks_audit.py --case forced-nether --case forced-overworld.

Hypothesis: the server ticks levels only when they contain players and closes idle dimensions without considering forced chunks.

Acceptance: force-loaded chunks remain loaded and process block/entity ticks in playerless dimensions, with observable results before the player returns.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1525 > 🤖 Filed by an AI assistant (Codex). Tested `9dd9a836991e263b51d0cec0f690d40a0b09eecc`, explicit modes and equivalent disposable worlds. Confirmed in **server-thread**; old singleplayer also stops. 1. In Nether chunk [0,0], `/forceload add 0 0`. 2. Start a furnace with one raw iron and coal; the reduction explicitly sets `cooking_total_time:200` and `cooking_time_spent:0`. 3. Immediately return to the Overworld, wait over 400 ticks, then inspect the furnace before and after returning. Expected: the forced chunk stays loaded and the furnace produces one ingot while the player is away. Native Minecraft 26.3 does this. Actual: the away query says the position is not loaded. Returning finds raw iron and only about forty cooking ticks spent. Staying nearby lets it finish normally. Repeated Horizon reductions (`cargo-forced-{a,b,c}`) include successful nearby and same-dimension/distant-player controls. Native c verifies raw input and a 200-tick cooking duration before departure, then the completed ingot while the player remains in the Overworld. Native a/b are excluded as away-processing controls because omitted timing NBT makes the first recipe finish before departure. Driver: `tools/singleplayer_forced_chunks_audit.py --case forced-nether --case forced-overworld`. Hypothesis: the server ticks levels only when they contain players and closes idle dimensions without considering forced chunks. Acceptance: force-loaded chunks remain loaded and process block/entity ticks in playerless dimensions, with observable results before the player returns.
Author
Owner

@ludovic111 commented on GitHub (Oct 26, 2026):

Claimed by rdbt on Discord (GitHub: rdbtCVS), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1525).

<!-- gh-comment-id:6416809875 --> @ludovic111 commented on GitHub (Oct 26, 2026): Claimed by `rdbt` on Discord (GitHub: `rdbtCVS`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1525). <!-- kira:work -->
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2172 addresses forced chunks ticking in playerless dimensions. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.

<!-- gh-comment-id:6418440185 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2172 addresses forced chunks ticking in playerless dimensions. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Fixed — b1136ac2 keeps force-loaded levels ticking without players; levels_to_tick includes dims whose parked state has forced chunks. Your Oct-23 test predates it. Suggest closing.

<!-- gh-comment-id:6443287135 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Fixed — `b1136ac2` keeps force-loaded levels ticking without players; `levels_to_tick` includes dims whose parked state has forced chunks. Your Oct-23 test predates it. Suggest closing.
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#481
No description provided.