Flight duration (1 to 3) sets how long the rocket rises before exploding, higher means higher. In normal crafting it matches the amount of gunpowder used. Rockets also boost elytra, and the duration affects the strength of the push.
Build rockets with shape, colors, trail and twinkle and generate the /give command
In Minecraft, firework rockets are made by combining gunpowder, paper and firework stars, and each star defines a shape, a set of colors, fade colors and effects like trail and twinkle. A single rocket can carry several stars, which explode almost simultaneously, up to 7 in normal crafting (less gunpowder leaves more room in the crafting grid for stars). Building this by hand is tedious. This tool lets you choose everything visually: add up to 7 stars to the rocket, each with its own explosion shape (small ball, large ball, star, creeper or burst), main and fade colors, and effects, with an animated preview of every explosion overlapping. Flight duration ranges from 1 to 3 and matches the amount of gunpowder used in crafting. At the end it generates the ready-to-paste /give command, in either the modern component format (1.20.5+) or the legacy NBT format (1.13–1.20.4), with the colors packed into the RGB integer the game expects.
A firework rocket holds one or more stars, and each star defines an explosion shape, small ball, large ball, star, creeper or burst, plus a list of colors, fade colors and the trail and twinkle effects. Flight duration (1 to 3) controls the height before it explodes and, in normal crafting, equals the gunpowder used.
Each star becomes a separate entry in the rocket's "explosions" list ("Explosions" in the legacy format), and they all explode almost at once when it detonates. The tool lets you add up to 7 stars per rocket, the same cap as a 3x3 crafting grid using the least gunpowder; /give itself has no such limit (the game accepts up to 256 explosions per rocket), but the 7-star cap keeps the result within what normal crafting can also produce.
Minecraft does not store the colors as hex, but as a single integer that packs red, green and blue. So in the command a color becomes something like 16711680 (red) inside an [I;...] array. The tool performs this conversion automatically from the colors you select, star by star.
Example 1, a large red-and-white ball, with trail and flight 2, in the modern format (1.20.5+): /give @p firework_rocket[minecraft:fireworks={flight_duration:2,explosions:[{shape:"large_ball",colors:[I;16711680,16777215],has_trail:true}]}] 1. The integers 16711680 and 16777215 are red and white packed into RGB.
Example 2, a creeper-shaped burst, green fading to white with twinkle, in the legacy format (1.13–1.20.4): /give @p firework_rocket{Fireworks:{Flight:1,Explosions:[{Type:3,Colors:[I;65280],FadeColors:[I;16777215],Flicker:1b}]}} 1. Note that legacy uses Type:3 (creeper) and Flicker:1b instead of the modern format's names.
Rockets also boost anyone gliding with an elytra, and the flight duration affects the strength of the push, a star-less rocket (no explosion) exists just for that boost. When you generate a decorative rocket with several stars, remember it can still be used to fly.
The generated command follows Java Edition syntax. On Bedrock, item and command structure differs, so it does not work directly, although the concept of shape, colors and effects is the same. Pick the modern format for 1.20.5+ worlds and legacy for 1.13 through 1.20.4.
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframe
src="https://jkit.tools/embed/en-US/minecraft-firework-generator"
width="100%"
height="600"
style="border:0"
loading="lazy"
title="Firework Generator"
></iframe>These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
Flight duration (1 to 3) sets how long the rocket rises before exploding, higher means higher. In normal crafting it matches the amount of gunpowder used. Rockets also boost elytra, and the duration affects the strength of the push.
/give @p firework_rocket[minecraft:fireworks={flight_duration:2,explosions:[{shape:"large_ball",colors:[I;11546150,16701501],has_trail:true,has_twinkle:true}]}] 1The command is generated locally in the browser; nothing is sent to servers.