execute if entity @s[tag=spike_hidden] run function traps:spike_hidden/0_main
execute if entity @s[tag=spike_fast] run function traps:spike_fast/0_main
execute if entity @s[tag=flamer] run function traps:flamer/0_main
execute if entity @s[tag=puffball] run function traps:puffball/0_main
execute if entity @s[tag=water_mine] run function traps:water_mine/0_main

execute if entity @s[tag=flamer_ray] run function traps:flamer/ray/main
execute if entity @s[tag=puffball_cloud] run function traps:puffball/puffball_cloud


scoreboard players remove @s[scores={trap_cooldown=1..}] trap_cooldown 1
