[PR #5990] [MERGED] An ender dragon summoned outside the End is drawn and flies #6598

Closed
opened 2026-11-03 06:23:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5990
Author: @xFedeT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/overworld-dragon


📝 Commits (2)

  • 3f6221b An ender dragon summoned outside the End is drawn and flies
  • 1252c14 Merge main into #5990 (#5789 already draws the dragon in every dimension; this keeps its flight outside the End)

📊 Changes

2 files changed (+10 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+7 -1)
📝 crates/horizon-client/src/game/end.rs (+3 -0)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally.

Fixes #5745.

What vanilla does

EnderDragon.aiStep flies the dragon whatever the dimension: ServerLevel.getDragonFight is null outside the End, and the dragon then just flies its phases (holding pattern around the origin). It is a living entity like any other, drawn wherever it is.

What was wrong

game.rs drew the dragon only if self.dim == Dim::End, and tick_end ticked it only through tick_fight in the End. A /summon ender_dragon in the overworld created a dragon that was never drawn and never moved: you heard its sounds, as the report says, and saw nothing.

What changes

  • The level's dragon is drawn in any dimension (game.rs).
  • Outside the End, tick_end ticks the dragon without the fight (tick_fight calls tick_dragon and returns when the dimension is not the End). The End's own tick is unchanged.

Verification

  • Live, offscreen game: /summon ender_dragon 0 200 30 in the overworld. Before: data get entity gave the same position [0.5, 200, 30.5] every sample and nothing was drawn. After: it flies (positions 21.7/197.9/12.8, 55.7/195.2/-16.7, 46.3/192.5/-22.9, ... around the origin) and is drawn (screenshot).
  • parity.py server_dragon end_podium end_gateway: pass. pr_ready --quick: fmt, clippy, 1691 horizon-client tests, Python tests pass.

Not checked

Hitting, killing and the death flight of such a dragon outside the End, and its boss bar (vanilla shows none without a fight), were not tried. The fight's logic stays End-only.

Screenshot: dragon

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5990 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/overworld-dragon` --- ### 📝 Commits (2) - [`3f6221b`](https://github.com/horizon-rust/horizon/commit/3f6221b268fbfe4a97aadb9a0a3e2d3151030e11) An ender dragon summoned outside the End is drawn and flies - [`1252c14`](https://github.com/horizon-rust/horizon/commit/1252c14927616a6addda8d726e0c46ab34c1d39a) Merge main into #5990 (#5789 already draws the dragon in every dimension; this keeps its flight outside the End) ### 📊 Changes **2 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+7 -1) 📝 `crates/horizon-client/src/game/end.rs` (+3 -0) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally. Fixes #5745. ## What vanilla does `EnderDragon.aiStep` flies the dragon whatever the dimension: `ServerLevel.getDragonFight` is null outside the End, and the dragon then just flies its phases (holding pattern around the origin). It is a living entity like any other, drawn wherever it is. ## What was wrong `game.rs` drew the dragon only `if self.dim == Dim::End`, and `tick_end` ticked it only through `tick_fight` in the End. A `/summon ender_dragon` in the overworld created a dragon that was never drawn and never moved: you heard its sounds, as the report says, and saw nothing. ## What changes - The level's dragon is drawn in any dimension (`game.rs`). - Outside the End, `tick_end` ticks the dragon without the fight (`tick_fight` calls `tick_dragon` and returns when the dimension is not the End). The End's own tick is unchanged. ## Verification - Live, offscreen game: `/summon ender_dragon 0 200 30` in the overworld. Before: `data get entity` gave the same position `[0.5, 200, 30.5]` every sample and nothing was drawn. After: it flies (positions 21.7/197.9/12.8, 55.7/195.2/-16.7, 46.3/192.5/-22.9, ... around the origin) and is drawn (screenshot). - `parity.py server_dragon end_podium end_gateway`: pass. `pr_ready --quick`: fmt, clippy, 1691 `horizon-client` tests, Python tests pass. ## Not checked Hitting, killing and the death flight of such a dragon outside the End, and its boss bar (vanilla shows none without a fight), were not tried. The fight's logic stays End-only. Screenshot: ![dragon](https://github.com/xFedeT/horizon/blob/pr-screenshots/5745/overworld-dragon.png?raw=true) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:37 +07:00
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#6598
No description provided.