I'm trying to build a teleport system in Minecraft, but the command blocks that have the teleport command (/tp @p x y z
) are far away from the pressure plate I use to activate it. I use this world with other people, so I'm worried that other people might be closer to the command blocks than I am, and they will accidentally get teleported.
Is there any way to make it so the command blocks teleport the closest person to a certain set of coordinates instead of the command block itself?