[GH-ISSUE #7476] Firework rockets with flight duration 2 or 3 don't work #3257

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

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

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

Reported in Discord #contributors by unrelateable (2026-11-02 15:01Z): "any rockets above flight duration 1 don't work".

Not reproduced yet. To check on the server thread (default single player) and on a dedicated server:

  • craft rockets with 2 and 3 gunpowder (crafting_special_firework_rocket): does the result carry flight_duration 2/3?
  • /give @s firework_rocket[fireworks={flight_duration:3}]: launched from the ground, does it fly ~ 10 * (1 + flight) + random ticks like vanilla's FireworkRocketEntity?
  • used while gliding with an elytra: does it boost, and for how long?

Code: crates/horizon-client/src/game/fireworks.rs (lifetime at line ~224), crates/horizon-client/src/crafting.rs (special recipe), crates/horizon-items/src/item_data.rs (flight_duration).

Originally created by @ludovic111 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7476 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. Reported in Discord #contributors by unrelateable (2026-11-02 15:01Z): "any rockets above flight duration 1 don't work". Not reproduced yet. To check on the server thread (default single player) and on a dedicated server: - craft rockets with 2 and 3 gunpowder (`crafting_special_firework_rocket`): does the result carry `flight_duration` 2/3? - `/give @s firework_rocket[fireworks={flight_duration:3}]`: launched from the ground, does it fly ~ `10 * (1 + flight) + random` ticks like vanilla's `FireworkRocketEntity`? - used while gliding with an elytra: does it boost, and for how long? Code: `crates/horizon-client/src/game/fireworks.rs` (lifetime at line ~224), `crates/horizon-client/src/crafting.rs` (special recipe), `crates/horizon-items/src/item_data.rs` (`flight_duration`).
bsakaguchi 2026-11-03 04:07:04 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

/claim

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

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

🤖 Agent: I couldn't reproduce this on main a7df9ec019 (single player on the server thread, offscreen, driven with horizon-ctl). Every case behaves like vanilla 26.3:

Case Result (ticks the rocket lived) Vanilla 10 * (1 + flight) + nextInt(6) + nextInt(7)
Survival craft, paper + 1/2/3 gunpowder (2x2 grid) gives 3 rockets with no component / flight_duration:2b / 3b; launched: 25 / 33 / 45 20–31 / 30–41 / 40–51
item replace … firework_rocket[fireworks={flight_duration:N}], used on the ground N=1: 26; N=2: 39, 29, 39; N=3: 40, 44, 45, 47, 41 same
Used while gliding (survival, elytra) boost for 29 / 34 / 44 ticks (N=1/2/3) at 1.69 b/t, then the glide slows same

These are spans between status samples, so they can be up to ~2 ticks short. I also compared the decompiled FireworkRocketEntity.<init> and tick, FireworkRocketRecipe.assemble and the Fireworks codecs (NBT UNSIGNED_BYTE, network VAR_INT) with game/fireworks.rs, crafting.rs, item_data.rs, horizon-protocol/src/item.rs and the tracker's rocket entity data, and found no difference. I didn't test a dedicated server on its own, but it runs the same server code as the server thread.

unrelateable (Discord)'s report needs more detail. Which version (launcher → version, or the F3 screen)? Single player, LAN or a server (which one)? And what does "don't work" look like: the rocket doesn't launch, it explodes at once, the boost is short, or the item isn't used up? If it was a non-Horizon (vanilla/Paper) server, that matters too. I'm leaving the issue open without a PR and releasing my claim.

<!-- gh-comment-id:6582799567 --> @ludovic111 commented on GitHub (Nov 2, 2026): 🤖 Agent: I couldn't reproduce this on main `a7df9ec019` (single player on the server thread, offscreen, driven with horizon-ctl). Every case behaves like vanilla 26.3: | Case | Result (ticks the rocket lived) | Vanilla `10 * (1 + flight) + nextInt(6) + nextInt(7)` | |---|---|---| | Survival craft, paper + 1/2/3 gunpowder (2x2 grid) | gives 3 rockets with no component / `flight_duration:2b` / `3b`; launched: 25 / 33 / 45 | 20–31 / 30–41 / 40–51 | | `item replace … firework_rocket[fireworks={flight_duration:N}]`, used on the ground | N=1: 26; N=2: 39, 29, 39; N=3: 40, 44, 45, 47, 41 | same | | Used while gliding (survival, elytra) | boost for 29 / 34 / 44 ticks (N=1/2/3) at 1.69 b/t, then the glide slows | same | These are spans between status samples, so they can be up to ~2 ticks short. I also compared the decompiled `FireworkRocketEntity.<init>` and `tick`, `FireworkRocketRecipe.assemble` and the `Fireworks` codecs (NBT `UNSIGNED_BYTE`, network `VAR_INT`) with `game/fireworks.rs`, `crafting.rs`, `item_data.rs`, `horizon-protocol/src/item.rs` and the tracker's rocket entity data, and found no difference. I didn't test a dedicated server on its own, but it runs the same server code as the server thread. unrelateable (Discord)'s report needs more detail. Which version (launcher → version, or the F3 screen)? Single player, LAN or a server (which one)? And what does "don't work" look like: the rocket doesn't launch, it explodes at once, the boost is short, or the item isn't used up? If it was a non-Horizon (vanilla/Paper) server, that matters too. I'm leaving the issue open without a PR and releasing my claim.
Author
Owner

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

/unclaim

<!-- gh-comment-id:6582800031 --> @ludovic111 commented on GitHub (Nov 2, 2026): /unclaim
Author
Owner

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

🤖 Agent: the reporter says it was on an older Nightly and may be fixed; current main matches vanilla in all three cases (see above). Closing; reopen if it shows up on a recent Nightly.

<!-- gh-comment-id:6583756729 --> @ludovic111 commented on GitHub (Nov 2, 2026): 🤖 Agent: the reporter says it was on an older Nightly and may be fixed; current main matches vanilla in all three cases (see above). Closing; reopen if it shows up on a recent Nightly.
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#3257
No description provided.