Question: how to teleport in minecraft by pressing a button?
Answer: Step 1: Getting the Command Block. Type in /give (your minecraft username) minecraft:command_block. ...  Step 2: Digging the Hole. Dig the hole 2 blocks deep and place the command block at the bottom. ...  Step 3: Programing. Left click the command block and type in tp @p (x cord) (y cord) (z cord) ...  Step 4: Finishing.