Configuring and managing your server

How to teleport players or entitities in your minecraft world ?

Teleporting players or entities in Minecraft can be done using the /tp command. The /tp command allows you to teleport a player or entity to a specified location in the game world. Here's how to use it:

  1. Open the Minecraft chat window by pressing the T key.
  2. Type in the /tp command followed by the target player or entity and the destination coordinates. The syntax for the /tp command is as follows:

/tp [target player or entity] [x] [y] [z]

X - Determines your position East/West in the map. Positive value increases your position to the East. 
Y - Determines your position up/down in the map. Positive value increases your position Upward.
Z - Determines your position South/North in the map. Positive value increases your position to the South

For example, if you want to teleport a player named "Steve" to the coordinates (100, 64, 200), you would type:

/tp Steve 100 64 200

If you want to teleport an entity, such as a cow, you would use the entity's UUID (Universally Unique Identifier). To find the UUID of an entity, you can use the /data get entity command. For example, to teleport a cow with the UUID "12345678-1234-1234-1234-123456789abc" to the coordinates (100, 64, 200), you would type:

/tp 12345678-1234-1234-1234-123456789abc 100 64 200

Note that the /tp command requires operator permissions, so you must be an operator on the server or in singleplayer mode to use it.

Note that you can find your current XYZ coordinates with the following command:
/tp ~ ~ ~

To start with the easiest

You can teleport yourself to an other player with :
/tp target_player 
exemple : "/tp max" will teleport yourself to max position

To teleport this player to yourself
/tp target_player yourself
exemple : "/tp max lara" will teleport max to lara position

To teleport all players to a player
/tp @a target_player
exemple : "/tp @a lara" will teleport all players to lara position

Now a little more harder 

To teleport yourself to coordinates
/tp X Y Z
exemple "/tp 0 80 0" will teleport you to the center of the map, at 80 block height.

To teleport an other player to coordinates
/tp target_player X Y Z
exemple "/tp lara 150 80 480" will teleport lara to the coordinate 150 80 480.

To teleport you x block away from your current location, you need to use relative coordinate that are specificed with the ~ sign.
/tp ~X ~Y ~Z
exemple "/tp ~10 ~20 ~30" will teleport you 10 blocks East, 20 block Upward and 30 block South of your current position.

To teleport the nearest player to you
/tp @p

To teleport a random player to you
/tp @r

To teleport all entities to a player
/tp @e target_player
exemple : "/tp @e lara" will teleport all entities to lara position

A little more advanced commands 

To teleport 10 pig to you
/tp @e[type=pig,limit=10] ~ ~ ~

or to a player
/tp @e[type=pig,limit=10] target_player

or to coordinates
/tp @e[type=pig,limit=10] X Y Z

To remotely teleport the closest player to an other player
/execute at target_player run tp @p target_player
exemple : "/execute at lara run tp @p lara" will teleport the closest player from lara to lara position.