[GH-ISSUE #2216] When flying with elytrea the fireworks wont produce particle effects #620

Closed
opened 2026-11-02 15:40:35 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @LXRylex on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2216

Image

usually fireworks produce a white trail behind them but in here it shows a static firework texture

Originally created by @LXRylex on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2216 <img width="451" height="369" alt="Image" src="https://github.com/user-attachments/assets/9181caf3-7eae-4841-8760-f1036a306403" /> usually fireworks produce a white trail behind them but in here it shows a static firework texture
Author
Owner

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

Image

also holding flint & clint while fireworks equipped off-hand it uses both hands

<!-- gh-comment-id:6418551525 --> @LXRylex commented on GitHub (Oct 26, 2026): <img width="538" height="490" alt="Image" src="https://github.com/user-attachments/assets/a30a4a37-1572-49c9-abce-5a2ce9d871a8" /> also holding flint & clint while fireworks equipped off-hand it uses both hands
Author
Owner

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

@LXRylex thanks for the report! A fix is up in #2280: a firework rocket boosting an elytra flight now shows its spark trail. It's waiting for review.

<!-- gh-comment-id:6422836595 --> @kacpherek commented on GitHub (Oct 26, 2026): @LXRylex thanks for the report! A fix is up in #2280: a firework rocket boosting an elytra flight now shows its spark trail. It's waiting for review.
Author
Owner

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

🤖 Agent: levzzz5154's AI agent (Claude Code). Reproduced on current main: while gliding with an elytra, the firework rocket that boosts the flight draws no spark particles at all in the game's default mode (the world on its server thread, the window a client of it) - neither the player's own window nor another client. The rocket's trail is a client-side effect in vanilla, so a client that never ticks the rocket never draws it.

Measured with two real games over LAN (the guest and the host each equip an elytra, jump, glide and use a firework rocket; the numbers are the 'firework' spark particles each side made during the boost):

# server-thread host (the default): the host's window and the guest
[lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, ...},
                   'guest': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, ...}}

# in-frame host (the world in the window): the local player gets the sparks, a guest does not
[lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 22, 'guest': 0}, ...}, ...}

The cause is in the code, not in the data: the local path (crates/horizon-client/src/game/fireworks.rs, tick_rockets) adds the spark every tick, but a server's client (crates/horizon-client/src/game/remote_projectiles.rs, tick_remote_projectiles -> Rocket::remote_step) only eases the rocket towards the position the server tracks, and never adds the particle - and the renderer draws the attached rocket as a static sprite, because it only skips the ones flagged as attached on the host side, not the ones attached by id.

Vanilla: FireworkRocketEntity.tick adds ParticleTypes.FIREWORK on the client every tick (this.life % 2 < 2, with nextGaussian() * 0.05, -deltaMovement.y * 0.5, nextGaussian() * 0.05), the attached rocket follows attachedToEntity and boosts the player, and shouldRender skips a rocket that is attached to an entity.

The fix is already up for review in #2280 ("Firework rockets: smooth flight and spark trail on a server"), which I did not duplicate; my measurement above is on main without it. I have no permission to close issues, so I am leaving this open for the maintainer, and it needs #2280 to land before the symptom is gone.

<!-- gh-comment-id:6429982472 --> @levzzz5154 commented on GitHub (Oct 26, 2026): 🤖 Agent: levzzz5154's AI agent (Claude Code). Reproduced on current main: while gliding with an elytra, the firework rocket that boosts the flight draws **no** spark particles at all in the game's default mode (the world on its server thread, the window a client of it) - neither the player's own window nor another client. The rocket's trail is a client-side effect in vanilla, so a client that never ticks the rocket never draws it. Measured with two real games over LAN (the guest and the host each equip an elytra, jump, glide and use a firework rocket; the numbers are the 'firework' spark particles each side made during the boost): ``` # server-thread host (the default): the host's window and the guest [lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, ...}, 'guest': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, ...}} # in-frame host (the world in the window): the local player gets the sparks, a guest does not [lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 22, 'guest': 0}, ...}, ...} ``` The cause is in the code, not in the data: the local path (`crates/horizon-client/src/game/fireworks.rs`, `tick_rockets`) adds the spark every tick, but a server's client (`crates/horizon-client/src/game/remote_projectiles.rs`, `tick_remote_projectiles` -> `Rocket::remote_step`) only eases the rocket towards the position the server tracks, and never adds the particle - and the renderer draws the attached rocket as a static sprite, because it only skips the ones flagged as attached on the host side, not the ones attached by id. Vanilla: `FireworkRocketEntity.tick` adds `ParticleTypes.FIREWORK` on the client every tick (`this.life % 2 < 2`, with `nextGaussian() * 0.05`, `-deltaMovement.y * 0.5`, `nextGaussian() * 0.05`), the attached rocket follows `attachedToEntity` and boosts the player, and `shouldRender` skips a rocket that is attached to an entity. The fix is already up for review in #2280 ("Firework rockets: smooth flight and spark trail on a server"), which I did not duplicate; my measurement above is on main without it. I have no permission to close issues, so I am leaving this open for the maintainer, and it needs #2280 to land before the symptom is gone.
Author
Owner

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

🤖 Agent: levzzz5154's AI agent (Claude Code). A longer window (45 ticks, so the rocket's 20 to 32 tick lifetime is over) makes the split clear: the explosion reaches every client (the 'poof' particles of the explosion are there: 4 on the host's window, 2 to 6 on the guest), and only the spark trail of the flight is missing - still 0 on the host's window and 0 on the guest in the default mode, while the in-frame local path draws 26.

# server-thread host (the game's default)
[lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, 'poof': {'host': 4, 'guest': 2}, ...},
                   'guest': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, 'poof': {'host': 4, 'guest': 6}, ...}}

# in-frame host: the local player gets the trail, a guest does not
[lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 26, 'guest': 0}, 'poof': {'host': 4, 'guest': 2}, ...}, ...}

That is the half #2280 covers: in vanilla FireworkRocketEntity.tick adds ParticleTypes.FIREWORK on the client every tick, for an attached rocket as well, and a rocket attached to an entity is not drawn at all (shouldRender). On main a server's client never ticks the rocket, so it never draws the trail and the attached rocket is drawn as a static sprite.

So the fix for this issue waits for #2280 to land; I did not duplicate it.

<!-- gh-comment-id:6433939671 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: levzzz5154's AI agent (Claude Code). A longer window (45 ticks, so the rocket's 20 to 32 tick lifetime is over) makes the split clear: the **explosion reaches every client** (the 'poof' particles of the explosion are there: 4 on the host's window, 2 to 6 on the guest), and only the **spark trail of the flight is missing** - still 0 on the host's window and 0 on the guest in the default mode, while the in-frame local path draws 26. ``` # server-thread host (the game's default) [lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, 'poof': {'host': 4, 'guest': 2}, ...}, 'guest': {'gliding': True, 'sparks': {'host': 0, 'guest': 0}, 'poof': {'host': 4, 'guest': 6}, ...}} # in-frame host: the local player gets the trail, a guest does not [lan] trail: PASS {'host': {'gliding': True, 'sparks': {'host': 26, 'guest': 0}, 'poof': {'host': 4, 'guest': 2}, ...}, ...} ``` That is the half #2280 covers: in vanilla `FireworkRocketEntity.tick` adds `ParticleTypes.FIREWORK` on the client every tick, for an attached rocket as well, and a rocket attached to an entity is not drawn at all (`shouldRender`). On main a server's client never ticks the rocket, so it never draws the trail and the attached rocket is drawn as a static sprite. So the fix for this issue waits for #2280 to land; I did not duplicate 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#620
No description provided.