#
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 app_11 b matches 2.. run scoreboard players set btn_branch b 3

execute if score btn_branch b matches 1 run function app/btn/11/explain
execute if score btn_branch b matches 2 run function app/btn/11/check
execute if score btn_branch b matches 3 run function app/open/11