execute as @s[scores={svm_ep.using_move=995..}] run summon marker ~ ~ ~ {Tags:["svm_ep.crack_2","svm_ep.crack"]}
execute as @s[scores={svm_ep.using_move=975..994}] run summon marker ~ ~ ~ {Tags:["svm_ep.crack_3","svm_ep.crack"]}
execute as @s[scores={svm_ep.using_move=950..974}] run summon marker ~ ~ ~ {Tags:["svm_ep.crack_4","svm_ep.crack"]}
execute as @s[scores={svm_ep.using_move=925..949}] run summon marker ~ ~ ~ {Tags:["svm_ep.crack_5","svm_ep.crack"]}
execute as @s[scores={svm_ep.using_move=900..924}] run summon marker ~ ~ ~ {Tags:["svm_ep.crack_6","svm_ep.crack"]}

particle minecraft:explosion ~ ~ ~ 0.75 0.75 0.75 0 3
execute as @s[scores={svm_ep.using_move=995..}] run function svm_ep:power/explosion/small/visual/1
execute as @s[scores={svm_ep.using_move=975..994}] run function svm_ep:power/explosion/small/visual/2
execute as @s[scores={svm_ep.using_move=950..974}] run function svm_ep:power/explosion/small/visual/3
execute as @s[scores={svm_ep.using_move=925..949}] run function svm_ep:power/explosion/small/visual/4
execute as @s[scores={svm_ep.using_move=900..924}] run function svm_ep:power/explosion/small/visual/5
tag @s add executor

tag @e[type=!#svm_ep:technical,dx=1,tag=!executor] add hit_by
tag @e[type=!#svm_ep:technical,dx=0,tag=!executor] add hit_by
execute as @s[scores={svm_ep.using_move=995..}] run tag @e[type=!#svm_ep:technical,distance=..2,tag=!executor] add hit_by
execute as @s[scores={svm_ep.using_move=975..994}] run tag @e[type=!#svm_ep:technical,distance=..4.25,tag=!executor] add hit_by
execute as @s[scores={svm_ep.using_move=950..974}] run tag @e[type=!#svm_ep:technical,distance=..7.5,tag=!executor] add hit_by
execute as @s[scores={svm_ep.using_move=925..949}] run tag @e[type=!#svm_ep:technical,distance=..10,tag=!executor] add hit_by
execute as @s[scores={svm_ep.using_move=900..924}] run tag @e[type=!#svm_ep:technical,distance=..13.5,tag=!executor] add hit_by

scoreboard players operation @s svm_ep.numbers = @s svm_ep.p.explosion_small_charge
scoreboard players operation @s svm_ep.numbers /= %small_explosion_damage_divisor svm_ep.world_settings
execute as @e[tag=hit_by] store result score @s svm_ep.deal_damage run scoreboard players get @e[tag=executor,limit=1] svm_ep.level
execute as @e[tag=hit_by] run scoreboard players operation @s svm_ep.deal_damage /= %small_explosion_damage_divisor2 svm_ep.world_settings
execute as @e[tag=hit_by] run scoreboard players operation @s svm_ep.deal_damage += @e[tag=executor,limit=1] svm_ep.numbers
execute as @e[tag=hit_by] run function svm_ep:damage/deal_normal {"damage":"3","attacker":"@e[limit=1,tag=executor]","type":"no_cooldown"}


tag @e remove hit_by
tag @s remove executor
tag @s remove explode
scoreboard players reset @s svm_ep.using_move
scoreboard players reset @s svm_ep.p.explosion_small_charge
