Minecraft wiki entry for Coordinates, associated text: For example, /tp ^ ^ ^5 teleports the player 5 blocks forward. If they turn around and repeat the command, they are teleported back to where they started.