/rotate
op 2Entities/rotate changes only the direction an entity faces. Before 1.21.2 this meant teleporting the entity to its own position with a rotation attached, which interrupted movement.
Commandready
14
Press C to copy
All entities
@e
Who or what the command applies to
yaw
pitch
Yaw 0 faces south. Pitch is −90 straight up to 90 straight down.
Examples
- Face south
/rotate @s 0 0
Common questions about /rotate
›What do the two numbers mean?
Yaw then pitch. Yaw 0 faces south, 90 faces west, 180 north, 270 east. Pitch is -90 straight up to 90 straight down.
›Does /rotate work on players?
Yes. It turns the player's view without moving them, which is how cutscenes point someone at what they are meant to be looking at.