#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

bossbar set minecraft:powerup4 max 500
execute if entity @s[tag=base] run bossbar set minecraft:powerup4 max 1000

execute if entity @s[tag=machinegun] run bossbar set minecraft:powerup4 name [{"translate":"compass.item.powerup","bold":true,"color":"green"},{"text":": ","bold":true,"color":"green"},{"translate":"powerup.machinegun","bold":true,"color":"dark_green"}]
execute if entity @s[tag=invulnerable] run bossbar set minecraft:powerup4 name [{"translate":"compass.item.powerup","bold":true,"color":"green"},{"text":": ","bold":true,"color":"green"},{"translate":"powerup.invulnerable","bold":true,"color":"dark_green"}]
execute if entity @s[tag=invisible] run bossbar set minecraft:powerup4 name [{"translate":"compass.item.powerup","bold":true,"color":"green"},{"text":": ","bold":true,"color":"green"},{"translate":"powerup.invisibility","bold":true,"color":"dark_green"}]
execute if entity @s[tag=base] run bossbar set minecraft:powerup4 name [{"translate":"compass.item.powerup","bold":true,"color":"green"},{"text":": ","bold":true,"color":"green"},{"translate":"powerup.base","bold":true,"color":"dark_green"}]
execute if entity @s[tag=speed] run bossbar set minecraft:powerup4 name [{"translate":"compass.item.powerup","bold":true,"color":"green"},{"text":": ","bold":true,"color":"green"},{"translate":"powerup.speed","bold":true,"color":"dark_green"}]
execute if entity @s[tag=goldmultiplier] run bossbar set minecraft:powerup4 name [{"translate":"compass.item.powerup","bold":true,"color":"green"},{"text":": ","bold":true,"color":"green"},{"translate":"powerup.multiplier","bold":true,"color":"dark_green"}]