Minecraft: How to teleport players using a distant command block
I want a command block at (0,0,0), so that when a player steps on the pressure plate at (0,0,100), he gets teleported to (0,0,200), while other players who are not on the pressure plate should not be affected.
What is the suitable command? Thank you.
Always active repeating command block:
execute @a 0 0 100 detect ~ ~ ~ stone_pressure_plate powered:true tp @s 0 0 200
You could also use:
tp @a[x=0,y=0,z=100,r=1] 0 0 200
This command block would be Repeat Unconditional Always Active
This will not require the pressure plate. As soon as a player gets to (0,0,100) they will be teleported.