shoot_firework
Launches a firework projectile from the player with configurable visual effects.
Categories: combat, visual
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
effects | List of firework effect subsections defining the firework's appearance. | DYNAMIC | |
power | The flight duration power of the firework (0-255). | INT | 0 |
inherit_velocity | Whether the firework should inherit the player's current velocity. | BOOLEAN | false |
launch-at-location | Whether the firework should be teleported to the trigger location after launch. | BOOLEAN | false |
no_source | Whether the firework should have no shooter, preventing attribution to the player. | BOOLEAN | false |
effects entries
| Key | Description | Type | Required |
|---|---|---|---|
type | The explosion shape: ball, ball_large, star, burst, creeper. Choices: ball, ball_large, star, burst, creeper | STRING_LIST | yes |
colors | The hex colors of the explosion. | STRING_LIST | no |
fade-colors | The hex colors the explosion fades to. | STRING_LIST | no |
trail | Whether the firework leaves a trail. | BOOLEAN | no |
flicker | Whether the explosion flickers. | BOOLEAN | no |
Trigger parameters required
PLAYER
Example
effects:
- id: shoot_firework
args:
effects:
- type: ball|ball_large|star|burst|creeper
colors: <value> # ← Optional
fade-colors: <value> # ← Optional
trail: <value> # ← Optional
flicker: <value> # ← Optional # ← Optional
power: 1 # ← Optional
inherit_velocity: true # ← Optional
launch-at-location: true # ← Optional
no_source: true # ← Optional
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |