scoreboard players set n_mobs EB_generic 0
scoreboard players set n_entities EB_generic 0
execute as @e[type=!player,tag=EB] at @s run function 0_enemy_boss:tick/sort
# Bossbar
execute at @a unless entity @e[tag=boss,tag=EB,distance=..32,limit=1] run bossbar set boss visible false
execute at @a as @e[tag=boss,tag=EB,distance=..32,sort=nearest,limit=1] run function bosses:bossbar
