Minecraft wiki entry for Command_blocks_and_functions, associated text: If a player use the teleport command with the command block, one can use relative coordinates in the destination coordinates by placing an ~ in front of a coordinate (e.g. code: /teleport @p ~ ~8 ~. This would teleport the player 8 blocks into the air).