execute if entity @s[tag=bw_1] if blocks ~1 ~ ~ ~1 ~ ~ -30000000 1 1610 all unless entity @e[type=!item,dx=0,limit=1] run function bw:set
execute if entity @s[tag=bw_2] if blocks ~-1 ~ ~ ~-1 ~ ~ -30000000 1 1610 all unless entity @e[type=!item,dx=0,limit=1] run function bw:set