#
setblock ~ ~1 ~2 redstone_block
setblock ~ ~1 ~-2 redstone_block
#
# scoreboard players set btn_branch b 0
# execute if entity @a[r=2,x=~,y=~2,z=~] run scoreboard players set btn_branch b 1
# execute if entity @e[type=item,r=2,x=~,y=~2,z=~] run scoreboard players set btn_branch b 2

# execute if score btn_branch b matches 1 run function app/btn/4/explain
# execute if score btn_branch b matches 2 run function app/btn/4/check
execute if score app_4 b matches 2.. run function app/open/4
execute unless score app_4 b matches 2.. run function app/btn/4/pass