Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/rotate: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 1: Line 1:
{{MC/Exclusive|java}}
{{Exclusive|java}}
{{Infobox command
{{Infobox command
|name=rotate
|name=rotate
Line 5: Line 5:
}}
}}


Changes the rotation of an entity.
Changes the rotation of an [[Minecraft:entity]].


== Syntax ==
== Syntax ==
Line 16: Line 16:


== Arguments ==
== Arguments ==
{{MC/Argument|target|entity}}
{{argument|target|entity}}
: Specifies the entity to rotate.
: Specifies the entity to rotate.
: {{MC/Arg desc|je=entity|amount=single|type=entities}}
: {{arg desc|je=entity|amount=single|type=entities}}


{{MC/Argument|rotation|rotation}}
{{argument|rotation|rotation}}
: Specifies the rotation.
: Specifies the rotation.
: {{MC/Arg desc|je=rotation}}
: {{arg desc|je=rotation}}


{{MC/Argument|facingLocation|vec3}}
{{argument|facingLocation|vec3}}
: Specifies the coordinates to make the target entity face towards.
: Specifies the coordinates to make the target entity face towards.
: {{MC/Arg desc|je=vec3}}
: {{arg desc|je=vec3}}


{{MC/Argument|facingEntity|entity}}
{{argument|facingEntity|entity}}
: Specifies the entity to make the target entity face towards.
: Specifies the entity to make the target entity face towards.
: {{MC/Arg desc|je=entity|amount=single|type=entities}}
: {{arg desc|je=entity|amount=single|type=entities}}


{{MC/Argument|facingAnchor|entity_anchor}}
{{argument|facingAnchor|entity_anchor}}
: Specifies whether to face towards the entity'eyes or feet. If not specified, defaults to feet.
: Specifies whether to face towards the entity's eyes or feet. If not specified, defaults to feet.
: {{MC/Arg desc|je=entity_anchor}}
: {{arg desc|je=entity_anchor}}


== Result ==
== Result ==
Line 44: Line 44:


== Output ==
== Output ==
{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|On success|1|1|1}}
{{Output table|On success|1|1|1}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.21.2|dev=24w40a|Added {{MC/Cmd|rotate|link=none}}.}}
|{{HistoryLine||1.21.2|dev=24w40a|Added {{cmd|rotate|link=none}}.}}
|{{HistoryLine|||dev=pre1|{{MC/Cmd|rotate|link=none}} now requires a permission level of 2 instead of 0.<ref>{{bug|MC-277141||/rotate command is not restricted to permission level 2|Fixed}}</ref>}}
|{{HistoryLine|||dev=pre1|{{cmd|rotate|link=none}} now requires a permission level of 2 instead of 0.<ref>{{bug|MC-277141||/rotate command is not restricted to permission level 2|Fixed}}</ref>}}
}}
}}


Line 60: Line 60:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/rotate
[[Minecraft:de:Befehl/rotate]]
ja:コマンド/rotate
[[Minecraft:ja:コマンド/rotate]]
pt:Comandos/rotate
[[Minecraft:pt:Comandos/rotate]]
ru:Команды консоли/rotate
[[Minecraft:ru:Команды консоли/rotate]]
zh:命令/rotate
[[Minecraft:zh:命令/rotate]]

Revision as of 11:06, 15 September 2026

Template:Exclusive Template:Infobox command

Changes the rotation of an Minecraft:entity.

Syntax

rotate <target> <rotation>
Change the entity's rotation to the specified rotation.
rotate <target> facing <facingLocation>
Rotates the entity to face a specified block position.
rotate <target> facing entity <facingEntity> [<facingAnchor>]
Rotates the entity to face another entity.

Arguments

Template:Argument

Specifies the entity to rotate.
Template:Arg desc

Template:Argument

Specifies the rotation.
Template:Arg desc

Template:Argument

Specifies the coordinates to make the target entity face towards.
Template:Arg desc

Template:Argument

Specifies the entity to make the target entity face towards.
Template:Arg desc

Template:Argument

Specifies whether to face towards the entity's eyes or feet. If not specified, defaults to feet.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table

History

Template:HistoryTable

References

<references />

Navigation

Template:Navbox commands

Minecraft:de:Befehl/rotate Minecraft:ja:コマンド/rotate Minecraft:pt:Comandos/rotate Minecraft:ru:Команды консоли/rotate Minecraft:zh:命令/rotate