How can I program a command block (or a combination of blocks) to teleport nearby player only if there is exactly one player nearby?
I.e. when button pressed, if there are more than one player within a radius of 6 blocks, don't teleport.
I tried two approaches:
/execute if scorewith
comparerblock to compare with the constant
The first approach resulted in a syntax error.
The second approach the
command block output was stuck on
_ and I also couldn't find a way to enter
1 into the the
comparer (no constant option in the
command block documentation)
I have tested this on the latest versions of Minecraft for Android (1.5.1) and for Xbox (1.5.1), both Bedrock editions.
Is there any way to do this?