Data component format/fireworks
- [NBT Compound / JSON Object] minecraft:fireworks
- [NBT List / JSON Array] explosions: List of the explosion effects caused by this firework rocket. Has a maximum of 256 explosions.
- [NBT Compound / JSON Object]: A single explosion effect.
- [String] shape: The shape of the explosion. Can be
small_ball, large_ball, star, creeper or burst.
- [NBT List / JSON Array] colors: The colors of the initial particles of the explosion, randomly selected from.
- [Int] A color as a packed integer
- [NBT List / JSON Array] fade_colors: The colors of the fading particles of the explosion, randomly selected from.
- [Int] A color as a packed integer
- [Boolean] has_trail: Whether or not the explosion has a trail effect (diamond).
- [Boolean] has_twinkle: Whether or not the explosion has a twinkle effect (glowstone dust).
- [Byte] flight_duration: The flight duration of this firework rocket, i.e. the number of gunpowders used to craft it. Must be an integer between -128 and 127. Defaults to 1.