Minecraft wiki entry for Command_blocks_and_functions, associated text: with /teleport @p <x> <y> <z> and /give @p <item>, players could make an obstacle course or maze that when finished will give a player a prize, and will teleport them back to spawn or some other area.