execute if entity @s[tag=setup] run function survivalplus:tools/trap/dummy/setup
execute if entity @s[tag=!setup] if block ~ ~-.1 ~ #survivalplus:notrap run function survivalplus:tools/trap/dummy/dismantle

function survivalplus:tools/trap/dummy/get_hp

execute if entity @s[nbt={HurtTime:9s}] at @s run function survivalplus:tools/trap/dummy/hit

execute if entity @s[scores={timer=1..}] run function survivalplus:tools/trap/dummy/fade
scoreboard players remove @s[scores={timer=1..}] timer 1