# Reset
execute if score @s trap_cooldown matches 20 run playsound custom.trap.trigger block @a ~ ~ ~
execute if score @s trap_cooldown matches 10 run playsound custom.trap.trigger block @a ~ ~ ~
execute if score @s trap_cooldown matches 1 run playsound custom.trap.trigger block @a ~ ~ ~
execute if score @s trap_cooldown matches 1 run playsound block.piston.contract block @a ~ ~ ~ 0.5

execute if score @s trap_cooldown matches 20 run data modify entity @s Item.tag.CustomModelData set value 8001
execute if score @s trap_cooldown matches 10 run data modify entity @s Item.tag.CustomModelData set value 8002
execute if score @s trap_cooldown matches 1 run data modify entity @s Item.tag.CustomModelData set value 8003

execute if score @s trap_cooldown matches 20 run stopsound @a * minecraft:entity.item_frame.add_item
execute if score @s trap_cooldown matches 10 run stopsound @a * minecraft:entity.item_frame.add_item
execute if score @s trap_cooldown matches 1 run stopsound @a * minecraft:entity.item_frame.add_item
