execute if score @s trap_cooldown matches ..0 align xyz if entity @e[dx=0,dy=0,dz=0,tag=!unspellable,limit=1,type=!player] run function traps:spike_fast/1_trigger
execute if score @s trap_cooldown matches ..0 align xyz if entity @a[dx=0,dy=0,dz=0,limit=1,gamemode=!spectator] run function traps:spike_fast/1_trigger

execute if score @s trap_cooldown matches 1.. run function traps:spike_fast/2_cicle
