bossbar set boss visible true
function bosses_py:1_bossbar_name
# Max hp
execute store result bossbar boss max run data get entity @s Attributes[{Name:"minecraft:generic.max_health"}].Base 100
execute store result bossbar boss value run data get entity @s Health 100