[PR #2109] [MERGED] Server players see the dragon's breath clouds and fireballs #4012

Closed
opened 2026-11-03 04:14:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2109
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/2083-remote-effect-clouds


📝 Commits (4)

  • 9ef7a6f Server players see the dragon's breath clouds
  • f5ef003 Server players see the dragon's fireballs in flight
  • e0fea85 Remote dragon fireball: apply inertia before the move
  • 4b89d0c Merge main into fix/2083-remote-effect-clouds

📊 Changes

6 files changed (+226 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+52 -6)
📝 crates/horizon-client/src/game/lan_entities.rs (+33 -0)
📝 crates/horizon-client/src/game/lan_particles.rs (+5 -1)
📝 crates/horizon-client/src/game/potions.rs (+2 -0)
📝 crates/horizon-client/src/game/remote.rs (+10 -0)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+124 -1)

📄 Description

What and why

On the server thread (single player's default) and for LAN guests, the dragon's breath was invisible: the purple clouds on the ground hurt the player but drew nothing, and the dragon's fireballs flew unseen.

Horizon keeps the breath clouds as a list on the server (breath_clouds), not as entities. Their particles were added to the server's own particle engine, which only the window of an in-frame game draws, so a server's players never saw them.

Now each breath cloud gets an entity id and is tracked to players as a minecraft:area_effect_cloud, with vanilla's synced data: DATA_RADIUS (it grows for a fireball's cloud), DATA_WAITING (its 20-tick wait) and DATA_PARTICLE (dragon_breath). A server's client keeps those clouds and draws them each tick as AreaEffectCloud.clientTick does: two particles near the middle now and then while waiting, then about one per square block of the disc, drifting slightly. The client side reads any area effect cloud a server sends, so it also covers clouds from other servers.

The dragon's fireballs had the same problem (a server-side list, never sent). Each is now tracked as a minecraft:dragon_fireball with its velocity. The client keeps it in the same dragon_fireballs list the in-frame game draws, snaps it to the server's moves (no interpolation handler, as vanilla), flies it on between updates as AbstractHurtingProjectile.tick does (power 0.1, inertia 0.95, 0.8 in water) and leaves its dragon_breath trail.

The invisible dragon itself is #1530 (#2049).

Part of #2083 (the dragon's breath and fireballs).

Vanilla reference

  • AreaEffectCloud: DATA_RADIUS, DATA_WAITING, DATA_PARTICLE, clientTick, waitTime 20
  • AbstractHurtingProjectile.tick and getTrailParticle (DragonFireball: dragon_breath)
  • DragonFireball.onHit and DragonSittingFlamingPhase.doServerTick (the clouds' radius, duration and dragon_breath particle)

Self-check

cargo check -p horizon-client passes.


🔄 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/2109 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/2083-remote-effect-clouds` --- ### 📝 Commits (4) - [`9ef7a6f`](https://github.com/horizon-rust/horizon/commit/9ef7a6fa256a5e9ba56d823552a211ae5b8ec2ed) Server players see the dragon's breath clouds - [`f5ef003`](https://github.com/horizon-rust/horizon/commit/f5ef003bada695889f9d788d6a97ede2fa404299) Server players see the dragon's fireballs in flight - [`e0fea85`](https://github.com/horizon-rust/horizon/commit/e0fea857ce23200d76cdd1db1e707a79384428b5) Remote dragon fireball: apply inertia before the move - [`4b89d0c`](https://github.com/horizon-rust/horizon/commit/4b89d0cd85557ac96711f6e32e56909b61e7d9f6) Merge main into fix/2083-remote-effect-clouds ### 📊 Changes **6 files changed** (+226 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+52 -6) 📝 `crates/horizon-client/src/game/lan_entities.rs` (+33 -0) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+5 -1) 📝 `crates/horizon-client/src/game/potions.rs` (+2 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+10 -0) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+124 -1) </details> ### 📄 Description ## What and why On the server thread (single player's default) and for LAN guests, the dragon's breath was invisible: the purple clouds on the ground hurt the player but drew nothing, and the dragon's fireballs flew unseen. Horizon keeps the breath clouds as a list on the server (`breath_clouds`), not as entities. Their particles were added to the server's own particle engine, which only the window of an in-frame game draws, so a server's players never saw them. Now each breath cloud gets an entity id and is tracked to players as a `minecraft:area_effect_cloud`, with vanilla's synced data: `DATA_RADIUS` (it grows for a fireball's cloud), `DATA_WAITING` (its 20-tick wait) and `DATA_PARTICLE` (`dragon_breath`). A server's client keeps those clouds and draws them each tick as `AreaEffectCloud.clientTick` does: two particles near the middle now and then while waiting, then about one per square block of the disc, drifting slightly. The client side reads any area effect cloud a server sends, so it also covers clouds from other servers. The dragon's fireballs had the same problem (a server-side list, never sent). Each is now tracked as a `minecraft:dragon_fireball` with its velocity. The client keeps it in the same `dragon_fireballs` list the in-frame game draws, snaps it to the server's moves (no interpolation handler, as vanilla), flies it on between updates as `AbstractHurtingProjectile.tick` does (power 0.1, inertia 0.95, 0.8 in water) and leaves its `dragon_breath` trail. The invisible dragon itself is #1530 (#2049). Part of #2083 (the dragon's breath and fireballs). ## Vanilla reference - `AreaEffectCloud`: `DATA_RADIUS`, `DATA_WAITING`, `DATA_PARTICLE`, `clientTick`, `waitTime` 20 - `AbstractHurtingProjectile.tick` and `getTrailParticle` (`DragonFireball`: `dragon_breath`) - `DragonFireball.onHit` and `DragonSittingFlamingPhase.doServerTick` (the clouds' radius, duration and `dragon_breath` particle) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:14:01 +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#4012
No description provided.