Firework

Spawns a configurable firework.

Parameters

ParameterInformationExample

Location

The location to spawn the firework in the format of world, x, y, z.

world, 196.3, 64, -381.8

Velocity

Sets the velocity of the firework, used to launch a firework in a direction. If you have ShotAtAngle on false, it'll eventually automatically go upwards. Keep it at 0, 0, 0 if you want to launch it like a normal firework. Follows the pattern of x, y, z.

0.5, 1.3, 0

Colors

The colors which the firework will use. Formatted as a list of hexadecimal colors following the pattern of color1, color2, color3 ect.

#ffffff, #000000

FadeColors

The fade colors of the firework, follows the same pattern as the Colors parameter. Leave it empty to not use fade colors.

#ffffff, #000000, #cccccc

Power

The power of the firework from 0 - 127. Set it to -1 to let it explode instantaneously.

2

FireworkShape

The shape of the firework. Can be BALL, BALL_LARGE, BURST, CREEPER or STAR.

BALL

ShotAtAngle

If set to true, it will make the firework rocket fly in a straight line, like when you shoot it with a dispenser or crossbow. You need to edit the Velocity to set the fly direction or else it won't move. Can only be set to true or false.

false

Flicker

Whether the explosion should flicker or not. Can only be set to true or false.

true

Trail

Whether the explosion should have a trail or not. Can only be set to true or false.

true

Delay

The amount of ticks this effect waits after the show starts before it's activation.

40

YML Preset
'1':
  Type: FIREWORK
  Location: world, 0, 0, 0
  Velocity: 0, 0, 0
  Colors: '#ffffff, #000000'
  FadeColors: ' '
  Power: 2
  FireworkShape: BALL
  ShotAtAngle: false
  Flicker: false
  Trail: false
  Delay: 0

Youtube Tutorial

Work in progress... :)

Last updated