Java 26.2
Teleport
Position
Position Teleport
Target @p
/tp @p ~ ~ ~
Position and entity
Teleport commands go wrong when relative and local coordinates get mixed up: ~ is relative to the entity, ^ is relative to the way it is facing. Build the destination visually, add rotation or a facing target, and copy a command that lands where you meant it to.
To exact coordinates
/tp @p 100 64 -200Absolute X Y Z. Swap any axis for ~ to keep the current value.
With rotation
/tp @p 100 64 -200 90 0Yaw 90 faces west, pitch 0 is level -- land the player looking the right way.
To another entity
/tp @p @e[type=armor_stand,limit=1,sort=nearest]Entity mode teleports to whatever the selector matches -- here the nearest armor stand.
~ (tilde) is relative to the entity position along the world axes, so ~ ~5 ~ moves five blocks up. ^ (caret) is relative to the direction the entity faces, so ^ ^ ^5 moves five blocks forward. Mixing the two is the most common /tp mistake.
Use the facing argument: /tp @p <x> <y> <z> facing <x2> <y2> <z2> lands the player and turns them to look at the target. You can also face an entity with facing entity <selector>.
They are the same command — /tp is an alias for /teleport. Both accept coordinates, a destination entity, rotation and facing arguments.
Wrap the teleport in /execute in <dimension> run tp ..., for example /execute in the_nether run tp @p 0 64 0. A bare /tp cannot change dimension on its own.
Java 26.2
Position
Target @p
/tp @p ~ ~ ~