execute if entity @e[tag=ngboss,type=!marker] store result bossbar ngboss max run attribute @e[tag=ngboss,limit=1] max_health get
execute if entity @e[tag=ngboss,type=!marker] store result bossbar ngboss value run data get entity @e[tag=ngboss,limit=1] Health
execute if entity @e[tag=ngboss] run bossbar set ngboss visible true
execute at @e[tag=ngboss] run bossbar set ngboss players @a[distance=..50]
#execute as @e[tag=ngboss] if score @s time < @e[tag=ngboss,limit=1,sort=arbitrary] time run function survivalplus:bossbar/multibossfix/ngboss