summon marker ~ ~ ~ {Tags:["svm_ep.crack_2","svm_ep.crack"]}
execute as @e[tag=!same_id,distance=..1.5,type=!#svm_ep:technical] run function svm_ep:power/fire/barrage/hitby
execute as @e[tag=!same_id,tag=!hit_by,dx=0,type=!#svm_ep:technical] run function svm_ep:power/fire/barrage/hitby
execute positioned ^ ^ ^-0.7 run function svm_ep:power/fire/place_fire
execute positioned ^ ^0.7 ^ run function svm_ep:power/fire/place_fire
execute positioned ^ ^-0.7 ^ run function svm_ep:power/fire/place_fire
execute positioned ^0.7 ^ ^ run function svm_ep:power/fire/place_fire
execute positioned ^-0.7 ^ ^ run function svm_ep:power/fire/place_fire
function svm_ep:power/fire/place_fire

scoreboard players add @a[distance=..5] svm_ep.shaking 3
scoreboard players add @a[distance=..2.5] svm_ep.shaking 2
scoreboard players add @a[distance=..1] svm_ep.shaking 2

particle minecraft:flame ~ ~ ~ 0 0 0 0.5 10
particle minecraft:flame ~ ~ ~ 0 0 0 1 25
particle minecraft:flame ~ ~ ~ 0 0 0 2 50
playsound minecraft:entity.blaze.shoot master @a ~ ~ ~ 0.75 0.75
playsound minecraft:entity.blaze.hurt master @a ~ ~ ~ 0.75 1.25

execute at @s run particle dust{color:[1f,0f,0f],scale:0.5f} ~ ~ ~ 2 2 2 0 15
execute at @s run particle dust{color:[1f,0.1f,0f],scale:0.7f} ~ ~ ~ 1 1 1 0 10
execute at @s run particle dust{color:[18000000f,0.25f,0f],scale:1.25f} ~ ~ ~ 0.85 0.85 0.85 0 7
execute at @s run particle dust{color:[18000000f,0.95f,0f],scale:2f} ~ ~ ~ 0.35 0.35 0.35 0 5


execute as @e[tag=hit_by] run function svm_ep:damage/deal_normal {"damage":"7","attacker":"@e[limit=1,tag=same_id]","type":"mob_attack"}
tag @e remove hit_by
kill @s