Firework Rocket

Firework rockets are items and entities used to create decorative explosions.

Obtaining
Fireworks can currently only be obtained by crafting. They are not listed in the Creative inventory.

Usage
To launch a firework rocket, its item on a block. They can also be launched from dispensers.

Behavior
Once launched, fireworks will fly out vertically, with random horizontal offset up to 5 blocks. After some time, the firework will explode into a colorful explosion based on the effects of the firework stars added upon crafting, or no explosion if no firework star was used. If multiple firework stars were added to the rocket upon crafting, they will all explode simultaneously.

The explosion of firework rockets is only aesthetic and has no effect on entities or blocks. There is also a delay between detonation and the player hearing the sound, emulating real fireworks, but this sound travels much more slowly than in the real world.

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

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

The height it rises is between 12 to 22 blocks with 1 gunpowder, 23 to 39 blocks with 2 gunpowder, and 40 to 60 blocks with 3 gunpowder.

Data values
As an item, firework rockets have an ID name of  and an ID number of 401. As an entity, firework rockets have an entity ID of  and a network ID of 22.

Trivia

 * Shooting a rocket into a cobweb causes it and the explosion particles to slowed down, creating a colorful ball inside the web.
 * Similar to the slowdown of cobwebs, it is possible to boost rockets with pistons and slime-blocks.
 * If a rocket is launched next to a ladder, the "climbing ladder" sound will play as it goes up as if a player or mob were climbing the ladder.
 * Launching a rocket by hand on a wooden pressure plate will activate it. The same doesn't hold for stone plates or when using dispensers.
 * There are 20,846,397,359,932,200 unique rocket combinations.