Minecraft wiki entry for Firework_Rocket, associated text: 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".