Infinity Fireworks
A server-side Fabric mod that prevents firework rockets from being consumed when launched or used for elytra boosting.

Infinite Firework Propulsion for Elytra
Infinity Fireworks by lyuwenhan stops firework rockets from depleting when triggered by players. While gliding with an elytra, using a rocket for a speed boost launches the projectile normally without lowering the item count in your stack. This infinite usage mechanic also works when you right-click against a block to fire a rocket into the air.
Every regular and customized firework rocket keeps its standard flight duration and explosion visuals. The modification avoids adding custom items, leaves crafting recipes untouched, and keeps Creative mode mechanics as they are. Keep in mind that automated dispensers are excluded from this effect and will still use up rockets.
In-Game Usage and Server Setup
No commands or configuration files are needed to activate the infinite rocket feature. Players simply hold a firework rocket and right-click while gliding or looking at a block. In singleplayer worlds, the functionality runs automatically through the internal server.
On multiplayer networks, the Fabric server itself must have the mod installed for players to benefit from unconsumed rockets. Running the mod solely on your local client will not stop fireworks from disappearing on remote servers. Furthermore, the project registers no commands and transmits no custom network packets.
Compatibility and Technical Requirements
Infinity Fireworks is designed for Minecraft Java Edition 26.3 on the Fabric platform. To run the mod properly, your environment requires Fabric Loader 0.19.5 or higher alongside Fabric API 0.160.5 or higher. In addition, the installation needs Java 25.
Questions
Do custom fireworks with explosion effects also stay in the inventory?
Yes, all firework types, including customized rockets, retain their explosions and flight properties without being consumed.
Does this mod make fireworks infinite inside dispensers?
No, rockets launched from dispensers are unaffected and will be used up as usual.
Can I use this on a multiplayer server if only I have it installed?
No, a client-side installation has no effect on remote servers; the server must have the mod installed.
Are there any commands or config settings to turn it on?
No, it works automatically out of the box without any configuration or commands.
Related

Allows players to take off with an elytra from the ground using a firework rocket without jumping.

Allows firework rockets with colors, effects, and shapes to boost elytra flight and create visual displays.

A Create addon that adds a craftable mechanical wing glider with a wing-flap boost mechanic.

Allows colorful firework rockets with effects to boost elytra flight and display fireworks in the sky.

A Create addon that adds rotation-powered flight anchors, an elytra-crafted Angel Ring, and upgraded elytra takeoff and boosting mechanics.

Rebalances and overhauls elytra flight with campfire updrafts, camera tilt, new enchantments, and altered firework boosts.

A mod that adds a fixed speed cap of 20 blocks per second to elytra flight.

Prevents fireworks from interacting with blocks while flying with an Elytra so they always trigger a flight boost.