execute if score @s EB_next_attack matches -20 run function attacks:water_mine/summon_x5
execute if score @s EB_next_attack matches -40 run function attacks:water_mine/summon_x5
execute if score @s EB_next_attack matches -60 run function attacks:water_mine/summon_x5
execute if score @s EB_next_attack matches -80 run function attacks:water_mine/summon_x5

execute if score @s EB_next_attack matches ..-80 run tag @s remove attacking
execute if score @s EB_next_attack matches ..-80 run tag @s remove mines
