Boss Bar Effect - MomoPewpew/MagicSpells GitHub Wiki
Description: Shows a message on the boss bar.
Configuration:
| Option | Description | Default Value |
|---|---|---|
title |
Title of the boss bar. | "" |
color |
Case insensitive. Valid colors: Pink, blue, red, green, yellow, purple and white. |
red |
style |
Case insensitive. Valid style values: Solid, segmented_6, segmented_10, segmented_12 and segmented_20. |
solid |
variable |
Name of the variable to display on the boss bar. | "" |
max-value |
Max value for the variable. | 100 |
duration |
Duration of the boss bar. 0 is indefinite. | 60 |
progress |
Progress of the boss bar. | 1 |
broadcast |
Defines if this boss bar should be broadcast to all players. | false |
remove |
If true, instead removes the boss bar associated with the namespace key. | false |
visible |
Defines if the boss bar is visible. | true |
namespace-key |
Defines boss bar namespace to allow for multiple bars to be present at a time. | "" |
Example:
bossbar:
spell-class: ".instant.DummySpell"
effects:
eff1:
position: caster
effect: bossbar
title: "&bTest Boss Bar Message!"
color: RED
style: SOLID
progress: 0.75
duration: 100
variables:
boss_bar:
type: player
default: 1
min: 1
max: 100
bossbarvariable:
spell-class: ".instant.DummySpell"
str-cast-self: "%var:boss_bar%"
effects:
eff1:
position: caster
effect: bossbar
title: "&eBoss Bar Variable:"
color: GREEN
style: SEGMENTED_20
variable: boss_bar
max-value: 100
duration: 100