ItemComponent - Fireworks Component Apply (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.8.0

Syntax

apply fireworks [component] to %itemstacks/itemtypes/slots%

Description

Apply a fireworks component to a firework rocket. See [**Fireworks Component**](https://minecraft.wiki/w/Data_component_format#fireworks) on McWiki for more info.

**Entries**: - `flight_duration` = The flight duration of this firework rocket, i.e. the number of gunpowders used to craft it. (Integer between 0 and 255, defaults to 1) - `explosions` = A section to apply firework explosions (see 'ItemComponent - Firework Explosion Component Apply' section).

Examples

apply fireworks to {_i}:
	flight_duration: 3
	explosions:
		apply firework explosion:
			shape: small ball
			colors: red, yellow and white
			fade_colors: blue, green and red
			has_trail: true
			has_twinkle: true
		apply firework explosion:
			shape: large ball
			colors: red, white and blue
			has_trail: false
			has_twinkle: false

View source