{{needs update|Firework rocket entity have an arrow-like model in Bedrock Edition}}
{{redirect|Firework}}
{{Infobox item entity
| image = Firework Rocket.png
| invimage = Firework Rocket
| renewable = 
* '''With Trail Effect''': No ([[Renewable resource#Vault|except via vault]])
* '''Without Trail Effect''': Yes
| stackable = Yes (64)
| size = Height: 0.25 blocks<br>Width: 0.25 blocks
| networkid = 
}}
A '''firework rocket''' is an [[item]] and [[entity]] used for creating decorative explosions, boosting when flying with [[elytra]], and loading into a [[crossbow]] as ammunition.

== Obtaining ==
Firework rockets can be obtained by crafting.

{{IN|java}}, firework rockets with no explosive effects and 3 different flight durations are available in the [[Creative inventory]]. {{IN|bedrock}}, 16 firework rockets with the different base colors and the "small ball" effect, and a single firework with no explosion are available in the Creative inventory; these all have a flight duration of 1.

By crafting the rocket using [[Firework Star|firework star]](s), colors, trail, and explosion effects can be added to the fireworks.

=== Crafting ===
{{Crafting
|head=1
|showname=0
|showdescription=1
|Paper
|; ; Gunpowder
|; Gunpowder; Gunpowder
|Gunpowder
|Output=Firework Rocket,3
|description=When crafted without a firework star, the rocket does not have explosion effects. The amount of gunpowder used increases the [[Firework Rocket#Duration and direction|flight duration]] to a maximum of three.
|type=Miscellaneous
}}
{{Crafting
|Any Firework Star
|Paper
|; ; Gunpowder
|; Gunpowder; Gunpowder
|Gunpowder
|Output= Firework Rocket,3
|description=Up to three gunpowder can be used, which increases flight duration. Any remaining spaces can be filled with firework stars to combine various effects. All firework stars explode almost simultaneously when the rocket detonates.
|type=Miscellaneous
|foot=1
}}

== Usage ==
=== Launching fireworks ===
A firework rocket can be launched up vertically by {{control|using}} its item on a block. Firework rockets can also be launched from [[dispenser]]s and [[crossbow]]s.

==== Dispenser ====
Using firework rockets with a dispenser is different than launching it on a block. The direction the dispenser is facing launches the firework in that direction; for example, if the dispenser is facing downward, the firework goes downward instead of going up.

==== Crossbow ====
A firework rocket can be used as ammunition for [[crossbow]]s, although it deals [[damage]] only if it has an [[explosion]] effect. A higher flight duration gives the firework rocket a longer range, and more damage is added per firework star. If shot from a [[Multishot]] crossbow, then 3 rockets fire with the same effects. The [[Piercing]] enchantment has no effect on firework rockets shot from a crossbow.

{{IN|java}}, if a firework rocket shot from a [[crossbow]] hits an [[entity]], the rocket instantly [[explode]]s, no matter the flight duration. Attempting to do this {{in|bedrock}}, however, results in the firework passing through the entity,<ref>{{bug|MCPE-52675||Fireworks do not explode on impact with entity and blocks}}</ref> so the player must plan where to aim.

=== Boosting elytra ===
Normally, [[elytra]] can glide for a short distance, but with the use of fireworks, the player can fly a long distance, gain speed, and take off from the ground. {{control|Using}} a firework rocket while flying with elytra propels the player in the direction they are facing. If the rocket is equipped with a firework star of any kind, the player takes damage when it explodes.

The duration of the speed boost depends on the flight duration of the rocket - a higher flight duration means a longer boost.
{| class="wikitable"
|+Elytra flight boost duration per level of firework (it appears to be somewhat random)
!Firework flight duration
!Elytra flight boost duration
!Boost amount
|-
|1
|~1.17 seconds
| +0% (default)
|-
|2
|~1.48 seconds
| +20%
|-
|3
|~2.22 seconds
| +28%
|}

=== Village raids ===
After successfully defending a village from a [[raid]], the [[villager]]s may celebrate by setting off firework rockets.

== Behavior ==
{{see also|Firework Star#Effects}}

Once launched, fireworks fly out vertically, with random horizontal offset up to 5 blocks. Fireworks can fly in any of the 6 directions a dispenser can point. After [[#Duration and direction|some time]], the firework explodes into a colorful explosion based on the effects of the [[firework star]]s added upon crafting, or no explosion if no firework star was used. If multiple firework stars were added to the rocket upon crafting, they all explode simultaneously.

The explosion of a firework rocket deals damage to mobs and players that are within 5 blocks and not obstructed by [[solid block]]s. The maximum damage of a rocket with one firework star is {{hp|7}}, with the damage decreasing with distance. Each additional firework star on the rocket adds {{hp|2}} points of damage, for a maximum damage of {{hp|19}} with 7 stars. Using commands to add additional firework stars results in more damage. The damage dealt is unaffected by any other ingredients used. The explosion does not destroy end crystals, item frames, or paintings, but does destroy armor stands and decorative pots.

There is a delay between the detonation and the player hearing the sound, emulating real fireworks, but this sound travels much more slowly than in the real world.<ref>{{Tweet|jeb|277075644804907009|However, no sound effects for fireworks yet... but everything's implemented, so they can be added without doing a new snapshot|December 7, 2012}}</ref><ref>{{Tweet|jeb|277075517226762242|Haha, @igblan , the speed of sound is 40 m/s, because the realistic speed of ~340 m/s didn't work well in Minecraft scale|December 7, 2012}}</ref> {{IN|java}}, the explosion of a firework can be seen 64 blocks away, regardless of its height. {{IN|bedrock}}, the explosion can be seen from the player's render distance.

If the explosion exceeds the [[particle]] limit of 16,384, the oldest particles are removed before displaying new ones, resulting in severely diminished firework quality / duration. At most a firework should have 3 trail stars, more than that could waste diamonds, firework stars, and other fireworks. Particle counts per star are:

{| class="wikitable" data-description="Particle counts per firework star"
|-
! Ball type !! Plain !! Trail
|-
| Small || 98 || ~1300
|-
| Large || 387 || 4000+
|-
| Star || 122 || ~1600
|-
| Creeper || 266 || ~3500
|-
| Burst || 72 || ~930
|}

Twinkle effect adds 2 particles to the count.

Like most other entities, fireworks can be moved by [[water]] and [[explosion]]s, and teleported via [[portal]]s. They also cannot move through solid surfaced blocks: upon hitting one, they either move to a side or explode based on the duration. If a firework explodes under a block, its explosion is flattened.

Non-lethal fireworks and fireworks crafted with firework stars behave differently around terrains. Lethal fireworks when shot at a solid block explode immediately upon impact, while non-lethal fireworks glide on whatever surface they encounter along their paths for the remainder of their duration and may resume their original trajectories upon exiting the surface.

=== Duration and direction ===
Fireworks travel different heights based on the amount of gunpowder added. The number is displayed as a tag on the item's tooltip with the description of "Flight Duration".

Each firework determines its lifetime in ticks by 10 &times; (number of gunpowder + 1) + random value from 0 to 5 + random value from 0 to 6, after which it explodes.

When spawned by player or command, the height it rises is between 8 and 20 blocks with 1 gunpowder, 18 to 34 blocks with 2 gunpowder, and 32 to 52 blocks with 3 gunpowder. 
(Note: {{IN|java}}, it is possible to use commands to create firework rockets with higher durations. These rockets go higher and keep accelerating with virtually no terminal velocity. If the duration is long enough, the firework rocket could reach heights of over 1,000,000 blocks and speeds of over 10,000&nbsp;m/s in a matter of minutes. Such fireworks with significant X and Z motions speed up sideways exponentially and reach outside the world boundary in a matter of seconds.)

When spawned, <!-- server-side --> fireworks have a vertical speed of .05 and a random small X and Z speed (random value near zero with a standard deviation of .001). Each tick, the firework accelerates horizontally by multiplying its X and Z velocities by 1.15, and vertically by adding a constant factor of 0.04.

When shot from a dispenser, it travels 9 to 10 blocks with 1 gunpowder, 14 to 15 blocks with 2 gunpowder, and 19 to 20 blocks with 3 gunpowder in the direction it was dispensed. When dispensed, the firework has a random velocity close to 0.5 (with a maximum deviation of .009) in the direction it was dispensed and a random small velocity in both other directions (random value near zero with a maximum deviation of .009). The firework's velocity does not change over the lifetime of the rocket.

Fireworks can be made to travel different directions by being dispensed or launched under flowing water. The firework's direction combines with the flow of the water to go diagonally. The direction changes significantly less if the firework is shot by a dispenser instead of by hand.

== Sounds ==
{{Edition|Java}}:<br>
Firework rockets use the Friendly Creatures sound category for [[Sound#Entity-dependent categories|entity-dependent sound events]].

{{SoundTable
| type = java
| {{SoundLine
| sound =Firework blast.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a non-large firework rocket explodes within a 16-block radius of the player
|id=entity.firework_rocket.blast
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
| {{SoundLine
|sound=Firework blast far.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a non-large firework rocket explodes greater than 16 blocks away from the player
|id=entity.firework_rocket.blast_far
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
| {{SoundLine
|sound=Firework large blast.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a large firework rocket explodes within a 16-block radius of the player
|id=entity.firework_rocket.large_blast
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
| {{SoundLine
|sound=Firework large blast far.ogg
|subtitle=Firework blasts
|source=ambient
|description=When a large firework rocket explodes greater than 16 blocks away from the player
|id=entity.firework_rocket.large_blast_far
|translationkey=subtitles.entity.firework_rocket.blast
|volume=20.0
|pitch=0.95-1.05
|distance=16}}
| {{SoundLine
|sound=Firework twinkle.ogg
|subtitle=Firework twinkles
|source=ambient
|description=When a twinkle firework rocket explodes within a 16-block radius of the player
|id=entity.firework_rocket.twinkle
|translationkey=subtitles.entity.firework_rocket.twinkle
|volume=20.0
|pitch=0.9-1.05
|distance=16}}
| {{SoundLine
|sound=Firework twinkle far.ogg
|subtitle=Firework twinkles
|source=ambient
|description=When a twinkle firework rocket explodes greater than 16 blocks away from the player
|id=entity.firework_rocket.twinkle_far
|translationkey=subtitles.entity.firework_rocket.twinkle
|volume=20.0
|pitch=0.9-1.05
|distance=16}}
| {{SoundLine
|sound=Firework launch.ogg
|subtitle=Firework launches
|source=ambient
|description=When a dispenser shoots, a player uses, or a crossbow fires a firework rocket
|id=entity.firework_rocket.launch
|translationkey=subtitles.entity.firework_rocket.launch
|volume=3.0
|pitch=1.0
|distance=16}}
| {{SoundLine
|sound=Bow shoot.ogg
|subtitle=Firework launches
|source=neutral
|description=When a dispenser fires a firework rocket
|id=entity.firework_rocket.shoot
|translationkey=subtitles.entity.firework_rocket.launch
|volume=1.0
|pitch=1.2
| distance = 16
}}
}}

{{Edition|Bedrock}}:
{{SoundTable
| type = bedrock
| {{SoundLine
| sound =Firework blast.ogg
|source=ambient
|description=When a non-large firework rocket explodes
|id=firework.blast
|volume=1.0
|pitch=1.0}}
| {{SoundLine
|sound=Firework large blast.ogg
|source=ambient
|description=When a large firework rocket explodes
|id=firework.large_blast
|volume=1.0
|pitch=1.0}}
| {{SoundLine
|sound=Firework twinkle.ogg
|source=ambient
|description=When a twinkle firework rocket explodes
|id=firework.twinkle
|volume=1.0
|pitch=1.0}}
| {{SoundLine
|sound=Firework launch.ogg
|source=ambient
|description=When a dispenser shoots, a player uses, or a crossbow fires a firework rocket
|id=firework.launch
|volume=1.0
|pitch=1.0}}
| {{SoundLine
|sound=Bow shoot.ogg
|source=ambient
|description=''Unused sound event''
|id=firework.shoot
|volume=1.0
| pitch = 1.0
}}
}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|firstcolumnname=Item
|showforms=y
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=item
|nameid=firework_rocket
|form=item
|foot=1}}
{{ID table
|edition=java
|firstcolumnname=Entity
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=entity
|nameid=firework_rocket
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Item
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=item
|nameid=firework_rocket
|aliasid=fireworks
|id=519
|form=item
|translationkey=item.fireworks.name
|foot=1}} 
{{ID table
|edition=bedrock
|firstcolumnname=Entity
|shownumericids=y
|generatetranslationkeys=y
|displayname=Firework Rocket
|spritetype=entity
|nameid=fireworks_rocket
|id=72
|foot=1}}

=== Item data ===
{{JE}}:
{{see also|Data component format}}
<div class="treeview">
* {{nbt|compound|components}}: the item's '''components''' tag.
{{:Data component format/fireworks}}
</div>

{{BE}}:
{{see also|Bedrock Edition level format/Item format}}

=== Entity data ===
{{el|java}}:
{{main|Entity format}}
{{/ED}}

{{el|bedrock}}:
: See [[Bedrock Edition level format/Entity format]].

== Advancements ==
{{load advancements|Bullseye;Ol' Betsy}}

== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||November 24, 2012|link=none|[[Jeb]] stated that there may be fireworks in ''Minecraft'' at the ''Future Updates with the Minecraft PC Team'' panel at [[MINECON 2012]].}}
|{{HistoryLine||December 5, 2012|link={{tweet|jeb|276367442362630144}}|Jeb released the first image of fireworks, along with the information that colors, fade, height, effects and shapes are [[craft]]able.}}
|{{HistoryLine||December 7, 2012|link=https://twitter.com/jeb_/status/277075087503536128|Jeb mentions that fireworks should probably scare [[wolves]] and potentially have other effects on mobs.}}
|{{HistoryLine||1.4.6|dev=12w49a|[[File:Firework Rocket JE1 BE1.png|32px]] Added firework rockets.
|Firework rockets cannot be obtained within the [[Creative inventory]].}}
|{{HistoryLine|||dev=12w50a|Added [[sound]] and more effects to firework rockets.}}
|{{HistoryLine||1.9|dev=15w32a|Using fireworks now plays the hand animation.}}
|{{HistoryLine||1.10|dev=16w20a|The firework rocket [[crafting]] recipe now produces 3 rockets, rather than 1.}}
|{{HistoryLine||1.11|dev=16w32a|The entity ID has been changed from <code>FireworksRocketEntity</code> to <code>fireworks_rocket</code>.}}
|{{HistoryLine||1.11.1|dev=16w50a|Firework rockets can now cause [[damage]] to [[entities]] that are within their [[explosion]] radius.
|Firework rockets can now boost [[player]]s while flying with [[elytra]].}}
|{{HistoryLine||1.13|dev=17w47a|The ID has been changed from <code>fireworks</code> to <code>firework_rocket</code>.
|The fade effects on fireworks can now be added by combining the firework star with [[dye]]s.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 401.}}
|{{HistoryLine||1.13|dev=?|Firework rockets with no flight duration are now available in the [[Creative inventory]].}}
|{{HistoryLine|||dev=pre5|The [[entity]] ID of firework rockets has been changed to <code>firework_rocket</code>.}}
|{{HistoryLine||1.14|dev=18w43a|Fireworks can now be shot from [[crossbow]]s.
|[[File:Firework Rocket JE2 BE2.png|32px]] The texture of firework rockets has been changed.
|[[Villagers]] now shoot a firework of a random color after winning a raid.}}
|{{HistoryLine||1.15|dev=19w36a|Firework rockets dispensed from a [[dispenser]] now travel in the direction they were fired.}}
|{{HistoryLine|||dev=19w37a|Using a firework rocket now plays the hand animation when boosting [[elytra]] flight.<ref>{{bug|MC-161073}}</ref>}}
|{{HistoryLine||1.17|dev=20w45a|Simple firework rockets with one gunpowder can now be crafted using the [[recipe book]].}}
|{{HistoryLine||1.19.3|dev=22w45a|All three flight durations of firework rockets are now available in the Creative inventory.<ref>{{bug
|MC-194390||A firework rocket from the creative inventory doesn't show a flight duration|Fixed}}</ref>}}

|{{HistoryLine|bedrock}}
|{{HistoryLine||1.2.0|dev=beta 1.2.0.2|[[File:Firework Rocket JE1 BE1.png|32px]] Added firework rockets. 
|Firework rockets are available in the Creative inventory in 17 variants, sixteen colors in small ball duration 1, plus one additional preset with only duration 1.{{verify|type=update|Is this the right snapshot?}}{{info needed}}}}
|{{HistoryLine||1.8.0|dev=beta 1.8.0.10|Firework rockets can now be held in the off-hand and be shot from [[crossbow]]s.}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Firework Rocket JE2 BE2.png|32px]] The texture of firework rockets has been changed.}}
|{{HistoryLine||1.16.100|dev=beta 1.16.100.56|The ID of firework rockets has been changed from <code>fireworks</code> to <code>firework_rocket</code>.}}

|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Firework Rocket JE1 BE1.png|32px]] Added firework rockets.
|Firework rockets are available in five types in the Creative inventory. The presets are as follows:
* Duration 1, small ball, light blue, twinkle
* Duration 2, creeper shaped, green
* Duration 2, burst, red, fade to orange
* Duration 3, burst, magenta, fade to blue, twinkle
* Duration 2, star shaped, yellow, fade to orange, trail}}
|{{HistoryLine||xbox=TU36|xbone=CU25|ps3=1.28|psvita=1.28|ps4=1.28|wiiu=Patch 7|switch=1.0.1|Firework rockets now show their flight duration and explosive effects above the [[HUD]] when switching items in the hotbar instead of just when hovering over them in the inventory.}}
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|Using fireworks now plays the hand animation.|The crafting interface has been updated to allow crafting [[firework star]]s and fireworks.}}
|{{HistoryLine||xbox=TU53|xbone=CU43|ps3=1.49|psvita=1.49|ps4=1.50|wiiu=Patch 23|switch=1.0.3|Firework rockets can now boost [[player]]s while flying with [[elytra]].}}
|{{HistoryLine||xbox=TU53|xbone=CU43|ps3=1.49|psvita=1.49|ps4=1.50|wiiu=Patch 23|switch=1.0.3|Firework rockets now [[damage]] players if there is a [[firework star]] applied to the firework rocket.}}
|{{HistoryLine||xbox=TU56|xbone=CU47|ps3=1.55|psvita=1.55|ps4=1.55|wiiu=Patch 26|switch=1.0.6|Firework rockets now produce 3 rockets upon [[crafting]] them instead of 1.}}
|{{HistoryLine||xbox=TU60|xbone=CU51|ps3=1.64|psvita=1.64|ps4=1.64|wiiu=Patch 30|switch=1.0.11|Added new firework rocket models.|Fireworks dispensed from a [[dispenser]] now travel in the direction fired.}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Firework Rocket JE2 BE2.png|32px]] The texture of firework rockets has been changed.|Fireworks can now be shot from [[crossbow]]s.}}
}}

== Issues ==
{{issue list}}

== Trivia ==
* Launching a rocket by hand on a wooden [[pressure plate]] activates it. The same doesn't hold for stone pressure plates, or for a [[dispenser]] placing a rocket onto a wooden pressure plate.
* New Year's Eve is what inspired [[Jeb]] to add fireworks.<ref>{{tweet|jeb|277080498814189568|@SPvs_TheWorld New Year's Eve|December 7, 2012}}</ref>
* If the player shoots a firework into a [[Nether portal]], it explodes in [[the Nether]].
* There are around 2×10{{^|136}} distinct fireworks.
* When a firework crafted without a firework star touches the surface of a block, it emits footstep noises.

== Gallery ==
=== Screenshots ===
<gallery>
File:Firework jeb twitter.jpg|[[Jeb]]'s first image of fireworks, also showing that they can be shot from dispensers.
File:1.4.6 release image.png|1.4.6 Release image.
File:Flatexplosion.png|An example of a flattened firework explosion.
File:Creeper firework.png|Creeper face-shaped firework.
File:Noor's Fireworks.jpg|"[[Noor]], basking in the sunset, fires a Crossbow with a [[custom]] enchantment that allows for multiple Firework Rockets to be fired simultaneously."<ref>{{mcnet|minecraft-java-edition-1-21|Minecraft Java Edition 1.21|June 13, 2024}}</ref>
</gallery>

=== In other media ===
<gallery>
File:Ari uses a firework rocket.png|[[Ari]] uses a firework rocket, in [[Introducing New Default Skins!]]
File:Sunny's firework rocket.png|[[Sunny]] firing a firework rocket, in [[Tricky Trials Update Official Trailer]].
</gallery>

== References ==
{{Reflist}}

== Navigation ==
{{Navbox items|Utilities}}
{{Navbox entities|Other}}

[[Category:Combat]]
[[Category:Projectiles]]

[[cs:Rachejtle]]
[[de:Feuerwerksrakete]]
[[es:Cohete de fuegos artificiales]]
[[fr:Feu d'artifice]]
[[hu:Tűzijáték rakéta]]
[[ja:ロケット花火]]
[[ko:폭죽 로켓]]
[[nl:Vuurpijl]]
[[pl:Fajerwerk]]
[[pt:Fogo de artifício]]
[[ru:Пиротехническая ракета]]
[[th:ดอกไม้ไฟ]]
[[uk:Феєрверкова ракета]]
[[zh:烟花火箭]]
