execute positioned ~ ~-1 ~ if entity @e[tag=bearsnap,distance=...5] at @s run function survivalplus:tools/trap/bear/failed
execute if block ~ ~-1 ~ #survivalplus:notrap run function survivalplus:tools/trap/bear/failed
execute unless block ~ ~-1 ~ #survivalplus:notrap run function survivalplus:tools/trap/bear/setting