Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/rotate

Command

/rotate

Turns an entity to a given rotation or makes it face a position or another entity, without moving it.

Syntax

/rotate <target> facing entity <facingEntity> [<facingAnchor>]
/rotate <target> facing <facingLocation>
/rotate <target> <rotation>

Arguments

ArgumentKind of valueWhat to type
<target>Target selectorThe single entity to turn. One entity only.
<facingEntity>Target selectorFor facing entity: the single entity to look at. One entity only.
<facingAnchor>Entity anchorFor facing entity: eyes or feet, the part of the other entity to look at. Default feet.
<facingLocation>Exact positionFor facing: the coordinates to look at.
<rotation>RotationTwo angles in degrees: first the horizontal rotation (yaw), then the vertical rotation (pitch). Each can be written with ~ to make it relative.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, operators on multiplayer servers, command blocks and functions.
ResultReports "Rotated <entity>". The number /execute store saves is 1.
Two formsGive a rotation as two numbers, or use facing with either coordinates or the word entity followed by an entity to look at.
Relative rotationA ~ in the rotation is measured from the rotation the command runs with, which is your own rotation when you type it. /rotate @s ~90 ~ turns you 90 degrees.
Facing an entityThe target looks at the other entity's feet unless eyes is given.
One targetOnly a single entity can be rotated per command.

Examples

/rotate @s 90 0

Turns you to yaw 90 with a level view.

/rotate @s ~180 ~

Turns you around to face the opposite direction.

/rotate @s facing 0 64 0

Makes you look at the coordinates 0 64 0.

/rotate @e[type=minecraft:armor_stand,limit=1,sort=nearest] facing entity @p eyes

Turns the nearest Armor Stand to look at the nearest player's eyes.

/rotate @p facing entity @e[type=minecraft:villager,limit=1,sort=nearest]

Makes the nearest player look at the feet of the nearest Villager.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)