
tag @e remove executor
tag @e remove same_id

tag @s add executor
execute as @e[tag=svm_ep.explosion_user] if score @s svm_ep.entity_id = @e[tag=executor,limit=1] svm_ep.entity_id run tag @s add same_id
scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 1
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=141..200}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 2
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=201..250}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 3
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=251..300}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 4
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=301..350}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 5
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=351..400}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 6
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=401..450}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 7
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=451..500}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 8
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=501..550}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 9
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=551..600}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 10
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=601..650}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 11
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=651..700}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 12
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=701..750}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 13
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=751..800}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 14
execute as @e[tag=same_id,scores={svm_ep.p.explosion_destroyer_charge=801..}] run scoreboard players set @e[tag=executor] svm_ep.p.explosion_destroyer_charge 15

scoreboard players reset @e[tag=same_id] svm_ep.p.explosion_destroyer_charge
execute at @s run particle minecraft:campfire_cosy_smoke ~ ~ ~ 0 0 0 1.3 1000
execute at @s run particle minecraft:flame ~ ~ ~ 0 0 0 1.78 2000
execute at @s run particle minecraft:cloud ~ ~ ~ 0 0 0 3 2000

execute at @s run function svm_ep:power/explosion/destroyer/sphere_rot0
tag @s remove executor
tag @e remove same_id