/rotate Command in Minecraft Java Edition

Change Player and Entity Rotation in Minecraft

Java EditionPlayers & EntitiesPermission: Level 2Added in 1.21.2

The /rotate command changes the direction a player or entity is looking in Minecraft Java Edition. You can set an exact yaw and pitch angle, or make the target look directly at a block coordinate or another entity.

Map makers and server operators use this command to direct a player's camera during cutscenes or to point mobs in a specific direction without moving their position. It requires level 2 operator permissions to run.

Syntax (Java 26.3, 3 forms)

  1. /rotate <target> <rotation>
  2. /rotate <target> facing <facingLocation>
  3. /rotate <target> facing entity <facingEntity> [<facingAnchor>]

The forms you will use most

/rotate <target> <rotation>
Sets the target's rotation to a specific yaw and pitch angle.
/rotate <target> facing <facingLocation>
Turns the target to look directly at a specific X, Y, and Z coordinate.
/rotate <target> facing entity <facingEntity> [<facingAnchor>]
Turns the target to face another player or entity, optionally aiming at their eyes or feet.

Arguments

ArgumentTypeWhat it means
<target>target selector
one target
Specifies the single player or entity to rotate, using a player name, a UUID, or a target selector like @p or @s.
<facingEntity>target selector
one target
Selects the single player or entity that the target should turn toward, using a name, UUID, or target selector.
<facingAnchor>anchorChooses whether the target looks at the other entity's eyes or feet.
<facingLocation>positionDefines the three X, Y, and Z coordinates for the target to look at, which can include decimals or relative ~ and ^ symbols.
<rotation>rotationSets the exact horizontal yaw and vertical pitch angles, such as 90 0.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.21.2 Command added.

Tips

Common mistakes

Java vs Bedrock

The /rotate command is only available in Minecraft Java Edition, where it was added in version 1.21.2. Bedrock Edition has no command with this name.

FAQ

When was the /rotate command added to Minecraft?

The /rotate command was added to Minecraft Java Edition in version 1.21.2.

Can I rotate multiple entities at once with /rotate?

No, the <target> argument only accepts a single player or entity, so you must use a selector that resolves to one target.

What permission level do I need to use /rotate?

You need permission level 2, which means you must be a server operator or have cheats enabled in a single-player world.

Related commands

/advancement/attribute/damage/defaultgamemode/effect/experience/gamemode/kill/ride/spawnpoint/spectate/spreadplayers/summon/swing/teleport/tp