#Boss bar issue

1 messages · Page 1 of 1 (latest)

obtuse zenith
#

does anyone know why whenever i first get the bossbar after my server has started up it always breaks?

    set bar progress of {-Bonecage::Bar::%{_p}'s uuid%} to 100
    set {-Bonecage::Bar::%{_p}'s uuid%} to boss bar with id "%{_p}'s uuid%Bonecage" with title "&e&lBone Cage" with color yellow with progress 100
    set bar style of {-Bonecage::Bar::%{_p}'s uuid%} to solid bar
    add {_p} to bossbar players of {-Bonecage::Bar::%{_p}'s uuid%}
    loop 1200 times:
        remove 0.0831 from bar progress of {-Bonecage::Bar::%{_p}'s uuid%}
        wait 1 tick
    remove {_p} from bossbar players of {-Bonecage::Bar::%{_p}'s uuid%}```
#

by break i mean the progress stays at 0

green thicket
#

Looks like you try to set the progress before initialising the variable