How do I teleport a player to another entity while changing the player's rotation?

How do I teleport a player to another entity while changing the player's rotation? - Woman Dribbling a Ball Inside the Dressing Room

I want to be able to teleport to an entity but keep my original rotation?
I tried /tp @p @e[type=ArmorStand] ~ ~.
I have looked everywhere and tested even the most stupid lines of code, in hope I'd stumble upon a working one.
Any help would be appreciated :)



Best Answer

When teleporting a entity to another, you cannot change the rotation. (There is no way to achieve this in a single command)

/tp @p @e[type=ArmorStand]

However, if you make this command run right after/before the teleportation to the armor stand, you can achieve the same effect.

/tp @p ~ ~ ~ <x rotation> <y rotation>

(Teleports the person who uses this command nowhere, then changes his rotation, or vice versa.)
Clue: Try making the armor stand execute this command.^

^ Since you're using @p, it does not affect the armor stand.




Pictures about "How do I teleport a player to another entity while changing the player's rotation?"

How do I teleport a player to another entity while changing the player's rotation? - Crop black man in casual clothes opening retro recorder to change cassette during resting on concrete surface with skateboard in city street
How do I teleport a player to another entity while changing the player's rotation? - Man in Black and White Ice Hockey Jersey Playing Hockey
How do I teleport a player to another entity while changing the player's rotation? - Black and Red Helmet on White and Red Textile



How do you teleport to a specific entity?

Players who want to move mobs to their character's position or move their character to the mob's position can use the following commands:
  • "/tp @e[type=mobtype] @p" will teleport mobs of a certain type to the closest player (usually you).
  • Typing "/tp @p @e[type=mobtype]" will move the player to them.


  • What is the command to teleport to another player?

    You can teleport other players, too. Just type their username before the coordinates \u2014 so if you're trying to teleport a player named JohnDoe, you'll type: /tp JohnDoe 70 70 70. And if all you want is to teleport yourself to JohnDoe (or any other player), just type: /tp JohnDoe.

    How do you teleport and rotate in Minecraft?

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

    How do you randomly teleport a player in Minecraft?

    Try the /spreadplayers command, which spreads entities in a random area. The syntax is /spreadplayers <x> <z> <spreadDistance> <maxRange> <respectTeams> <player \u2026> In your case, you might want to try something like /spreadplayers ~ ~ 0 10000 false @a[r=5,c=1] .



    HOW TO TELEPORT OBJECTS IN UNITY 🎮 | Teleport Player and GameObjects in Unity | Unity Tutorial




    More answers regarding how do I teleport a player to another entity while changing the player's rotation?

    Answer 2

    (for 1.13+)

    What I have found is:

    /execute at @e[type=pig] as @e[pig,limit=1,sort=nearest] run tp @s @p

    Seems to teleport the entity while keeping the player's rotation. (teleports entity with the player's original rotation)

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: cottonbro, Budgeron Bach, Ron Lach, Ron Lach