Use Command Block To Teleport Player - DigMinecraft

Use Command Block to Teleport Player

This Minecraft tutorial explains how to program a command block to teleport a player to another place in Minecraft with screenshots and step-by-step instructions.

console command

Let's explore how to do this.

Supported Platforms

This command block program is available in the following versions of Minecraft:

PlatformSupported (Version*)
Java Edition (PC/Mac) Java Edition (PC/Mac)Yes (1.8)
Pocket Edition (PE) Pocket Edition (PE)Yes (1.0.5)
Xbox 360 Xbox 360No
Xbox One Xbox OneNo
PS3 PS3No
PS4 PS4No
Wii U Wii UNo
Nintendo Switch Nintendo SwitchNo
Windows 10 Edition Windows 10 EditionYes (1.0.5)
Education Edition Education EditionYes (1.0.18)

* The version that it was added or removed, if applicable. NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Required Materials

In Minecraft, these are the required materials to use a command block:

command block 1 Command Block TIP: Read our tutorial called Understanding the Coordinate System to learn about the XYZ coordinates in Minecraft and how to find your current coordinates.

Program the Command Block

First, you need to program the command block to teleport a player with the /tp command by providing a set of XYZ coordinates. This /tp command will be run each time the command block is activated.

So, stand in front of the command block with your pointer (the plus sign) on the command block and click on the right mouse button.

open command block

This will bring up the programming console for the command block.

console command

Now, type your command in the "Console Command" text box. We use the /tp command to teleport the player.

TIP: When you are using command blocks, you have certain values that you can use to target players:

@p - targets the nearest player@r - targets a random player@a - targets all players@e - targets all entities

  • Java
  • PE
  • Win10
  • Edu

Command in Minecraft Java Edition (PC/Mac)

Command in Minecraft Java Edition (PC/Mac) 1.8, 1.9, 1.10, 1.11 and 1.12:

/tp @p 85 72 -200

Command in Minecraft Pocket Edition (PE)

Command in Minecraft Pocket Edition (PE):

/tp @p 85 72 -200

Command in Minecraft Windows 10 Edition

Command in Minecraft Windows 10 Edition:

/tp @p 85 72 -200

Command in Minecraft Education Edition

Command in Minecraft Education Edition:

/tp @p 85 72 -200

In this example, we are going to teleport the nearest player to a specific set of XYZ coordinates. The @p is used to target the player that is closest to the command block. The coordinates 85 72 -200 are specific XYZ coordinates of the location where you want to teleport the player.

console command

When you are finished entering the command, click on the Done button.

Activate the Command Block

Now, activate the command block with the redstone device such as a lever, button, or pressure plate. In this example, we have placed a stone pressure plate next to the command block.

open command block

When a player stands on the pressure plate, the command block will be activated.

console command

Now the player should be teleported to the desired coordinates.

Congratulations, you have learned how to program a command block to teleport a player to another place in the game.

Command Block Programs

Here are some command block programs that you can try:

command block to build a house with one command Build a House with One Command command block to build an indestructible house with one command Build an Indestructible House with One Command command block to build a castle with one command Build a Castle with One Command command block to give an enchanted diamond pickaxe Give an Enchanted Diamond Pickaxe command block to give an enchanted diamond sword Give an Enchanted Diamond Sword command block to summon giant with golden armor and sword Summon Giant with Golden Armor and Sword command block to summon iron skeleton riding horse Summon Iron Skeleton Riding Horse command block to summon a killer spider jockey Summon a Killer Spider Jockey command block to summon villager with customized trade Summon Villager with Customized Trade command block to summon zillager with diamond armor and sword Summon Zombie with Diamond Armor and Sword command blocks to teleport player with item Teleport Player with Item

Tag » How To Teleport Using Command Blocks