Better Commands
Better Commands
  • Home
  • Commands
    • /ability
    • /bc
    • /clear
    • /clearspawnpoint
    • /damage
    • /enchant
    • /execute
    • /forceenchant
    • /gamemode
    • /gamerule
    • /give
    • /kill
    • /me
    • /msg
    • /old
    • /playsound
    • /remove
    • /say
    • /scoreboard
    • /setblock
    • /spawnpoint
    • /summon
    • /team
    • /teammsg
    • /teleport
    • /time
    • /trigger
  • Target Selectors
  • Data types
  • Entity Aliases
  • Scoreboard
Powered by GitBook
On this page
  • Syntax
  • Arguments
  • Examples
  • History
Edit on GitHub
  1. Commands

/teleport

Teleports entities (aliases: /tp)

Previous/teammsgNext/time

Last updated 1 year ago

Syntax

teleport <destination>

teleport <targets> <destination>

Teleports the executor or the specified entity(s) to the position of an entity, and make its rotation the same as the specified entity's.

teleport <pos>

Teleports the executor to a certain position.

teleport <targets> <pos>

Teleports the entity(s) to a certain position (without changing their rotation).

teleport <targets> <pos> <rotation>

teleport <targets> <pos> facing <facingPos>

teleport <targets> <pos> facing entity <facingEntity>

Teleports the entity(s) to a certain position and changes their rotation to the specified rotation.

Arguments

<targets>

Specifies the entity(s) to be teleported. If not specified, defaults to the command's executor.

Specifies the coordinates to teleport the target(s) to.

Specifies the entity to teleport the target(s) to.

Specifies the rotation.

Specifies the coordinates to make the target(s) face towards.

Specifies the entity to make the target(s) face towards.

Examples

  • To teleport the executing player to Alice: teleport Alice

  • To teleport all players to the executing player: tp @a @s

  • To teleport the executing player to x=100 and z=100, but three blocks above their current position: teleport 100 ~3 100

  • To teleport the executing player 1 block forward tp ^ ^ ^1

  • To rotate the nearest player 10 degrees to the right without changing their position: execute as @p at @s run teleport @s ~ ~ ~ ~10 ~

History

Version
Action

v1.0

Added /teleport and /tp

<pos>

<destination>

<rotation>

<facingPos>

<facingEntity>

Selector
Selector
Selector
Position
Rotation
Position