[GH-ISSUE #7554] [server] An ender dragon appeared at the overworld spawn on the official server, with no command #3293

Open
opened 2026-11-03 04:07:19 +07:00 by bsakaguchi · 3 comments
Owner

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

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

On the official server (dedicated, Horizon Nightly 2026-11-02 f483362 + SMP mod 0.30.1), an ender dragon showed up in the overworld near 0 0 about 4 minutes after a restart. Reported by the ops in Discord.

From the server log (times UTC):

  • 16:24:53 the server starts (normal restart; binaries swapped, world untouched).
  • 16:29:11 a player who logged in at (88, 65, 40) dies at once (xxGortexx died); 16:29:32 a player asks why they hear the ender dragon at spawn.
  • 16:30:10 an op kills it ([bunchy7s: Killed Ender Dragon]).
  • No command spawned it: no summon feedback in the log (ops' commands log as [name: …]), no spawn-egg use in chat. Players are in survival.

Questions for whoever picks this up:

  • Can a dragon reach the overworld through save/load (an End entity written to an overworld chunk, the dragon fight's state, a level swap in levels.rs)?
  • Can anything in survival spawn one (a dispenser with ender_dragon_spawn_egg, a mob conversion)?
  • Did previous restarts leave one too? The End has been visited on this world.

The server's latest.log is on the Sculk panel (ask an orchestrator); world backups exist from just before the restart.

Originally created by @ludovic111 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7554 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. On the official server (dedicated, Horizon Nightly 2026-11-02 f483362 + SMP mod 0.30.1), an **ender dragon showed up in the overworld near 0 0** about 4 minutes after a restart. Reported by the ops in Discord. From the server log (times UTC): - 16:24:53 the server starts (normal restart; binaries swapped, world untouched). - 16:29:11 a player who logged in at (88, 65, 40) dies at once (`xxGortexx died`); 16:29:32 a player asks why they hear the ender dragon at spawn. - 16:30:10 an op kills it (`[bunchy7s: Killed Ender Dragon]`). - **No command spawned it**: no `summon` feedback in the log (ops' commands log as `[name: …]`), no spawn-egg use in chat. Players are in survival. Questions for whoever picks this up: - Can a dragon reach the overworld through save/load (an End entity written to an overworld chunk, the dragon fight's state, a level swap in `levels.rs`)? - Can anything in survival spawn one (a dispenser with `ender_dragon_spawn_egg`, a mob conversion)? - Did previous restarts leave one too? The End has been visited on this world. The server's latest.log is on the Sculk panel (ask an orchestrator); world backups exist from just before the restart.
Author
Owner

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

/claim

<!-- gh-comment-id:6583908160 --> @WhyFovius commented on GitHub (Nov 2, 2026): /claim
Author
Owner

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

🤖 Agent: I read the whole level/dimension plumbing around the dragon (levels.rs swaps, hub here()/config.dimension, admit/change_level/respawn, fight_players/fight_has_players, tracking, broadcast_near, the bossbar) and can rule out the classic cross-level leaks: every channel that reaches a client — entity tracking, sounds (broadcast_near), level events, the dragon bossbar — is filtered by the guest's dimension, the dragon and its persist memory are parked per level and save into the level-in-place's own chunks, and the fight (tick_fight) only respawns while the End itself is being ticked with a player the hub really places in the End. I could not find a code path that writes the End's dragon into an overworld chunk.

What I did find is a tight regression window that fits this incident exactly:

  • #5990 ("An ender dragon summoned outside the End is drawn and flies", merged 2026-11-01) made any ender_dragon entity outside the End fully active. Its own commit message describes the before state: outside the End the dragon was "invisible, motionless ... only made sounds". After it, tick_fight calls tick_dragon() in every dimension, so such an entity flies, targets players (fight_players in the level in place) and makes sounds — a live boss.
  • The server's nightly (2026-11-02, f483362) includes #5990; the same restart also swapped the SMP mod binary to 0.30.1.
  • spawn_loaded_entities restores an ender_dragon from any level's chunk NBT (no dimension gate; this matches vanilla, where a summoned dragon in the overworld saves and restores there). So an ender_dragon NBT sitting in an overworld chunk near (0, 128, 0) — from an old summon, or created through the native entity API that landed the same days — is now woken as a live flying dragon on every restart, roughly when the spawn chunks load; before #5990 the same world would only have made occasional dragon sounds.

Decisive test on the pre-restart backup (Ludovic's third question): read the overworld's region/r.0.0.mca, chunk (0, 0), and look for an ender_dragon entity around (0, 128, 0) — and check the End's DIM1/region for the fight's own dragon, to tell the two apart. If the overworld NBT is there, the immediate world fix is removing it; "how it got written" stays open (I could not find a Horizon path — a native mod creating/joining one is the remaining candidate).

Unclaiming — I can't take this further without the backup or the mod's source; whoever has the backup should run the check above. If the overworld NBT is confirmed and a Horizon write path is found, I'm happy to take it back.

<!-- gh-comment-id:6584526125 --> @WhyFovius commented on GitHub (Nov 2, 2026): 🤖 Agent: I read the whole level/dimension plumbing around the dragon (levels.rs swaps, hub here()/config.dimension, admit/change_level/respawn, fight_players/fight_has_players, tracking, broadcast_near, the bossbar) and can rule out the classic cross-level leaks: every channel that reaches a client — entity tracking, sounds (broadcast_near), level events, the dragon bossbar — is filtered by the guest's dimension, the dragon and its persist memory are parked per level and save into the level-in-place's own chunks, and the fight (tick_fight) only respawns while the End itself is being ticked with a player the hub really places in the End. I could not find a code path that writes the End's dragon into an overworld chunk. What I did find is a tight regression window that fits this incident exactly: - **#5990** ("An ender dragon summoned outside the End is drawn and flies", merged 2026-11-01) made any `ender_dragon` entity outside the End fully active. Its own commit message describes the before state: outside the End the dragon was *"invisible, motionless ... only made sounds"*. After it, `tick_fight` calls `tick_dragon()` in every dimension, so such an entity flies, targets players (fight_players in the level in place) and makes sounds — a live boss. - The server's nightly (2026-11-02, f483362) includes #5990; the same restart also swapped the SMP mod binary to 0.30.1. - `spawn_loaded_entities` restores an `ender_dragon` from *any* level's chunk NBT (no dimension gate; this matches vanilla, where a summoned dragon in the overworld saves and restores there). So an `ender_dragon` NBT sitting in an overworld chunk near (0, 128, 0) — from an old summon, or created through the native entity API that landed the same days — is now woken as a live flying dragon on *every* restart, roughly when the spawn chunks load; before #5990 the same world would only have made occasional dragon sounds. **Decisive test on the pre-restart backup** (Ludovic's third question): read the overworld's `region/r.0.0.mca`, chunk (0, 0), and look for an `ender_dragon` entity around (0, 128, 0) — and check the End's `DIM1/region` for the fight's own dragon, to tell the two apart. If the overworld NBT is there, the immediate world fix is removing it; "how it got written" stays open (I could not find a Horizon path — a native mod creating/joining one is the remaining candidate). Unclaiming — I can't take this further without the backup or the mod's source; whoever has the backup should run the check above. If the overworld NBT is confirmed and a Horizon write path is found, I'm happy to take it back.
Author
Owner

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

/unclaim

<!-- gh-comment-id:6584526765 --> @WhyFovius commented on GitHub (Nov 2, 2026): /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#3293
No description provided.