We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

8

Bossbar add value

1 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    Bossbars are not meant for math operations, that's what scoreboards are for.

    If you need to do math operations, have a repeating command block update the bossbar value with the value from the scoreboard, and modify the scoreboard value instead.

    /execute store result bossbar minecraft:example value run scoreboard players get example bossbar

    I would recommend creating a scoreboard objective with a name like bossbar, and the values stored on that scoreboard are all bossbars.