execute as @e[type=!#no_interaction,scores={n_effects=1..},tag=!unspellable] at @s run function effects:sort
execute as @e[type=!#no_interaction_p,scores={n_effects=0},tag=!unspellable] run scoreboard players reset @s n_effects

execute as @a[scores={n_effects=1..},tag=effects_hud] run function effects:hud/display
