execute if score @s EB_next_attack matches -10 run playsound custom.flintlock.cock hostile @a ~ ~ ~
execute if score @s EB_next_attack matches -20 facing entity @a[gamemode=!spectator,limit=1] feet run function attacks:bullet/summon

execute if score @s EB_next_attack matches -30 run playsound custom.flintlock.cock hostile @a ~ ~ ~
execute if score @s EB_next_attack matches -40 facing entity @a[gamemode=!spectator,limit=1] feet run function attacks:bullet/summon

execute if score @s EB_next_attack matches -50 run playsound custom.flintlock.cock hostile @a ~ ~ ~
execute if score @s EB_next_attack matches -60 facing entity @a[gamemode=!spectator,limit=1] feet run function attacks:bullet/summon

execute if score @s EB_next_attack matches -70 run playsound custom.flintlock.cock hostile @a ~ ~ ~
execute if score @s EB_next_attack matches -80 facing entity @a[gamemode=!spectator,limit=1] feet run function attacks:bullet/summon

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 shoot
