Minecraft Firework Command Generator
Pick your version and copy a working /give firework_rocket command — flight duration 1–255, colors, shapes, trail & twinkle. Works on Java 1.21.11 & 26.x and older versions. Command not working?
/give @p firework_rocket[fireworks={flight_duration:3}] 6458 characters — fits in chat. Needs cheats / operator.
Quick presets
Crafting caps flight at 3 (= 3 gunpowder); commands allow up to 255.
No explosion — a clean elytra boost rocket that won't damage you. Add a star for colors.
Crafting recipe
- Rocket: 1 Paper + 3 Gunpowder → plain rocket ×3
How firework rockets work
A firework rocket is crafted from 1 Paper plus 1–3 Gunpowder and up to 7 Firework Stars. The gunpowder sets the flight duration (1–3), and each star adds one explosion with its own shape, colors and effects. With no stars you get a rocket that flies but doesn't explode — handy for the Elytra.
Firework stars: shapes, colors & effects
Each star is 1 Gunpowder + at least one Dye, optionally with one shape modifier and the trail/twinkle add-ons:
- Small ball — default (no shape item).
- Large ball — add a Fire Charge.
- Star-shaped — add a Gold Nugget.
- Creeper-shaped — add a Mob Head.
- Burst — add a Feather.
- Trail — add a Diamond (leaves a comet tail).
- Twinkle / crackle — add Glowstone Dust (the flickering sound & sparkle).
Combine multiple dyes in one star to mix its colors, and add a second dye color via a finished star + dye to set a fade-to color. Stack several stars into one rocket for a multi-burst effect.
Fireworks & the Elytra
While gliding with an Elytra, using a firework rocket boosts your speed in the direction you're looking. Plain rockets (no stars) are safest and cheapest for flight; star rockets still boost but can deal explosion damage. Higher flight duration gives a longer boost.
The /give command by version
- Java 1.20.5 → 1.21.11 / 26.x (item components):
/give @p firework_rocket[fireworks={flight_duration:3}] 64 - Java 1.20.4 and older (NBT):
/give @p firework_rocket{Fireworks:{Flight:3b}} 64 - Bedrock:
/give @p firework_rocket 64gives plain rockets only — custom flight or explosions must be crafted.
Firework command not working? Fixes
- "Expected whitespace" / unknown item data — you used the old
{Fireworks:{…}}NBT on 1.20.5+. Switch the version above to Java 1.20.5+ and copy again. - Command cut off in chat — chat accepts 256 characters. Long multi-star commands must go in a command block.
- "Unknown or incomplete command" — cheats are off. Open to LAN with cheats allowed, or ask a server operator.
- Rocket explodes and hurts you while flying — remove all stars for a clean elytra boost rocket.
- Bedrock — Bedrock can't customize fireworks with commands; craft them (1 Paper + up to 3 Gunpowder + stars).
FAQ
How do you make a firework rocket in Minecraft?
Combine 1 Paper with 1–3 Gunpowder (the amount sets flight duration) and 0–7 Firework Stars. The stars decide the colors, shape and effects of the explosion.
How do you make a firework star?
Combine 1 Gunpowder with at least one Dye. Add a shape modifier (Fire Charge = large ball, Gold Nugget = star, Mob Head = creeper, Feather = burst), a Diamond for a trail, or Glowstone Dust for a twinkle.
What is the /give command for a flight duration 3 firework?
On Java 1.20.5 and newer (including 1.21.11): /give @p firework_rocket[fireworks={flight_duration:3}] 64. On 1.20.4 and older: /give @p firework_rocket{Fireworks:{Flight:3b}} 64.
Why doesn't my firework command work?
Usually it's the wrong format for your version: the old {Fireworks:{Flight:3}} NBT stopped working in Java 1.20.5, and the new [fireworks={...}] component format fails on older versions. Commands over 256 characters can't be typed in chat — use a command block. Bedrock's /give can't customize fireworks at all.
What's the max flight duration?
3 by crafting (3 gunpowder). With commands you can set flight_duration up to 255 on Java 1.20.5+ (127 on older versions, where Flight is a byte).