execute if score @s trap_cooldown matches 1..50 run function traps:flamer/ray/shoot

# Reset
execute if score @s trap_cooldown matches 1 run data modify entity @s Item.tag.CustomModelData set value 8005
execute if score @s trap_cooldown matches 1 run stopsound @a * minecraft:entity.item_frame.add_item
