OGTOOLS

Minecraft /rotate command

Turns only the target's view, without teleporting it.

🧍 Player commands Operator (level 2) Needs cheats enabled Java Edition 26.3

Syntax

/rotate <target> <rotation>
/rotate <target> facing <facingLocation>
/rotate <target> facing entity <facingEntity>

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Arguments

ArgumentWhat it does
<rotation> Yaw and pitch in degrees; the tilde rotates relatively.
facing Turns toward the given point or entity.

Examples

/rotate @s ~90 ~

Turns you 90 degrees to the right.

/rotate @s facing entity @p

Turns you toward the nearest player.

Good to know

  • Added in 1.21.2; before that, the tp command was used for this.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).

Related commands

🧍 More Player commands

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.