execute positioned ~ ~1 ~ if entity @e[distance=...5,type=!#survivalplus:notalive] run function survivalplus:tools/trap/bear/trigger
execute if block ~ ~ ~ #survivalplus:notrap run function survivalplus:tools/trap/bear/failed