execute as @s anchored feet if block ~~-1~ air unless block ~~2~ air unless block ~~2~ light_block run event entity @s bd:on_celling
execute as @s anchored feet if block ^-0.6^2^ air if block ^0.6^2^ air if block ~~2~ air run event entity @s bd:jumpscare_novent
execute as @s anchored feet unless block ^-0.6^2^ air unless block ^0.6^2^ air if block ~~2~ air run event entity @s bd:jumpscare_novent
execute as @s anchored feet if block ~~2~ air unless block ~~3~ air run event entity @s bd:jumpscare_vent
execute as @s at @s positioned ~~3~ if block ~~2~ air unless block ^^^1 air run event entity @s bd:jumpscare_vent
execute as @s at @s anchored feet if block ~~2~ air if block ^-0.6^2^ air unless block ^0.6^2^ air unless block ^0.6^2^ light_block run event entity @s bd:on_left
execute as @s at @s anchored feet if block ~~2~ air if block ^0.6^2^ air unless block ^-0.6^2^ air unless block ^-0.6^2^ light_block run event entity @s bd:on_right
execute as @s at @s positioned ^^^38 anchored eyes facing entity @e[family=villager,r=40] eyes run tag @e[family=villager,r=40] add mommy_prey
execute as @s at @s positioned ^^^38 anchored eyes facing entity @e[family=illager,r=40] eyes run tag @e[family=illager,r=40] add mommy_prey
execute as @s at @s positioned ^^^38 anchored eyes facing entity @e[family=ravager,r=40] eyes run tag @e[family=ravager,r=40] add mommy_prey
execute as @s at @s positioned ^^^38 anchored eyes facing entity @e[family=player,r=40] eyes run tag @e[family=player,r=40] add mommy_prey
execute as @s at @s positioned ^^^38 anchored eyes facing entity @e[type=!item,family=!inanimate,rm=40,tag=mommy_prey] eyes run tag @e[type=!item,family=!inanimate,rm=40,tag=mommy_prey] remove mommy_prey