create_boss_bar
Creates and displays a boss bar for the player.
Categories: visual
Required arguments
| Key(s) | Description | Type |
|---|---|---|
id | A unique identifier used to reference this boss bar with update_boss_bar or remove_boss_bar. | STRING |
name | The display text shown on the boss bar. Supports placeholders. | STRING |
color | The boss bar color. Choices: BLUE, GREEN, PINK, PURPLE, RED, WHITE, YELLOW | STRING |
style | The boss bar overlay style. Choices: PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20 | STRING |
progress | The fill percentage of the boss bar, from 0 to 100. Supports expressions. | EXPRESSION |
Trigger parameters required
PLAYER
Example
effects:
- id: create_boss_bar
args:
id: <value>
name: &6%player%'s Charge
color: BLUE|GREEN|PINK|PURPLE|RED|WHITE|YELLOW
style: PROGRESS|NOTCHED_6|NOTCHED_10|NOTCHED_12|NOTCHED_20
progress: 50 + %level%
Behaviour
| Setting | Value |
|---|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |