scoreboard players add world necromancer_count 1
execute store result score @s necromancer_count run scoreboard players get world necromancer_count
tag @s remove necromancer_soul_bar_not_shown

execute if score world necromancer_count matches 1 run bossbar set soul_bar max 50
execute if score world necromancer_count matches 1 run bossbar set soul_bar visible true
execute if score world necromancer_count matches 1 run bossbar set soul_bar players @s
execute if score world necromancer_count matches 1 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 2 run bossbar set soul_bar2 max 50
execute if score world necromancer_count matches 2 run bossbar set soul_bar2 visible true
execute if score world necromancer_count matches 2 run bossbar set soul_bar2 players @s
execute if score world necromancer_count matches 2 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 3 run bossbar set soul_bar3 max 50
execute if score world necromancer_count matches 3 run bossbar set soul_bar3 visible true
execute if score world necromancer_count matches 3 run bossbar set soul_bar3 players @s
execute if score world necromancer_count matches 3 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 4 run bossbar set soul_bar4 max 50
execute if score world necromancer_count matches 4 run bossbar set soul_bar4 visible true
execute if score world necromancer_count matches 4 run bossbar set soul_bar4 players @s
execute if score world necromancer_count matches 4 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 5 run bossbar set soul_bar5 max 50
execute if score world necromancer_count matches 5 run bossbar set soul_bar5 visible true
execute if score world necromancer_count matches 5 run bossbar set soul_bar5 players @s
execute if score world necromancer_count matches 5 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 6 run bossbar set soul_bar6 max 50
execute if score world necromancer_count matches 6 run bossbar set soul_bar6 visible true
execute if score world necromancer_count matches 6 run bossbar set soul_bar6 players @s
execute if score world necromancer_count matches 6 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 7 run bossbar set soul_bar7 max 50
execute if score world necromancer_count matches 7 run bossbar set soul_bar7 visible true
execute if score world necromancer_count matches 7 run bossbar set soul_bar7 players @s
execute if score world necromancer_count matches 7 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 8 run bossbar set soul_bar8 max 50
execute if score world necromancer_count matches 8 run bossbar set soul_bar8 visible true
execute if score world necromancer_count matches 8 run bossbar set soul_bar8 players @s
execute if score world necromancer_count matches 8 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 9 run bossbar set soul_bar9 max 50
execute if score world necromancer_count matches 9 run bossbar set soul_bar9 visible true
execute if score world necromancer_count matches 9 run bossbar set soul_bar9 players @s
execute if score world necromancer_count matches 9 run bossbar set soul_bar color blue

execute if score world necromancer_count matches 10 run bossbar set soul_bar10 max 50
execute if score world necromancer_count matches 10 run bossbar set soul_bar10 visible true
execute if score world necromancer_count matches 10 run bossbar set soul_bar10 players @s
execute if score world necromancer_count matches 10 run bossbar set soul_bar color blue