← Back to Command Directory ← Back to Home

/rotate

Rotates an entity's facing direction.

Syntax

/rotate <targets> <yaw> <pitch>
/rotate <targets> facing <pos>
/rotate <targets> facing entity <entity> [eyes|feet]

Parameters

NameRequiredDescription
targetsYesEntities to rotate.
yaw/pitchNoRotation angles.
pos/entityNoFacing target.

Examples

/rotate @p 90 0
/rotate @e[type=armor_stand] facing 0 64 0

Notes

Version Differences

Java-only in current editions (newer versions).

Related Commands