EntitiesJava

/rotate

Turns an entity to a yaw/pitch, or to face a position or another entity, without moving it — the rotation-only counterpart to /teleport's facing options. Added in 1.21.2.

Syntax

Parameters

target
entity selector
Entities to rotate.
rotation
yaw pitch
Absolute or relative (~) rotation.

Examples

  • Face yourself due west, level pitch.

  • Turn to face the nearest player.

Permission level

/rotate requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.