execute as @s[tag=!id16_explode] at @s if entity @a[distance=..3] run function main:game/mobs/ai/id/id16/start
execute as @s[tag=id16_explode,scores={enemy_ability_cooldown_1=..0,stun=..0}] at @s run function main:game/mobs/ai/id/id16/explode

execute as @s[tag=id16_explode,scores={enemy_ability_cooldown_1=1..,stun=..0}] at @s run particle lava ~ ~0.5 ~ 0 0 0 1 0 force

execute if entity @s[scores={stun=1..}] run tag @s remove id16_explode