ItemComponent - Firework Explosion Component Apply (Section) — SkBee

Addon: SkBee · Category: Section · Since: 3.8.0

Syntax

apply firework explosion [component] [to %-itemstacks/itemtypes/slots%]

Description

Apply a firework explosion effect to a firework star. This can also be used within the Fireworks Component's `explosions:` section. See [**Firework Explosion Component**](https://minecraft.wiki/w/Data_component_format#firework_explosion) on McWiki for more info.

**Entries**: - `shape` = The [firework type](https://docs.skriptlang.org/classes.html#FireworkType) of the explosion. - `colors` = The colors of the initial particles of the explosion, randomly selected from. - `fade_colors` = The colors of the fading particles of the explosion, randomly selected from. - `has_trail` = Whether or not the explosion has a trail effect (diamond). - `has_twinkle` = Whether or not the explosion has a twinkle effect (glowstone dust).

Examples

# Apply to item
apply firework explosion to {_i}:
	shape: small ball
	colors: red, yellow and white
	fade_colors: blue, green and red
	has_trail: true
	has_twinkle: true

# Apply as explosion in fireworks
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