playsound block.piston.extend block @a ~ ~ ~ 0.5
playsound custom.trap.trigger block @a ~ ~ ~

data modify entity @s Item.tag.CustomModelData set value 8000
stopsound @a * minecraft:entity.item_frame.add_item

execute align xyz run scoreboard players add @e[dx=0,dy=0,dz=0,tag=!unspellable,type=!#no_interaction] damage 600

scoreboard players set @s trap_cooldown 30
