MCPE PROXIMITY DETECTOR

Tutorial viewed            times

Command blocks

Paste the first command in the bottom command block and the second command in the upper command block.


/execute @a ~ ~-2 ~ execute @e[type=armor_stand,name=LIGHT,r=6] ~ ~ ~ setblock ~ ~1 ~ air


​/execute @a ~ ~-2 ~ execute @e[type=armor_stand,name=LIGHT,r=5] ~ ~ ~ setblock ~ ~1 ~ redstone_block