Java 26.2
/rotate
Target
@sDistance
x rotation
y rotation
Team
Name
XP Level
/rotate
Set entity rotation or face a target.
/rotate @s ~ ~
Rotation and facing
The /rotate command turns an entity without moving it, and the facing forms are what make it useful: face a block position, or face another entity anchored at its feet or eyes. Set yaw and pitch by hand, or build a facing form here and skip the trigonometry.
Java 26.2
@sSet entity rotation or face a target.
/rotate @s ~ ~