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)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 1: Line 1:
{{Exclusive|java}}
{{MC/Exclusive|java}}
{{Infobox command
{{Infobox command
|name=rotate
|name=rotate
Line 16: Line 16:


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


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


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


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


{{argument|facingAnchor|entity_anchor}}
{{MC/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'eyes or feet. If not specified, defaults to feet.
: {{arg desc|je=entity_anchor}}
: {{MC/Arg desc|je=entity_anchor}}


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


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


== History ==
== History ==
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.21.2|dev=24w40a|Added {{cmd|rotate|link=none}}.}}
|{{HistoryLine||1.21.2|dev=24w40a|Added {{MC/Cmd|rotate|link=none}}.}}
|{{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>}}
|{{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>}}
}}
}}


Line 60: Line 60:


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


de:Befehl/rotate
de:Befehl/rotate

Latest revision as of 20:13, 9 April 2026

Script error: No such module "Exclusive". Template:Infobox command

Changes the rotation of an 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

<target>: entity

Specifies the entity to rotate.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<rotation>: rotation

Specifies the rotation.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|rotation}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<facingLocation>: vec3

Specifies the coordinates to make the target entity face towards.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|vec3}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<facingEntity>: entity

Specifies the entity to make the target entity face towards.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<facingAnchor>: entity_anchor

Specifies whether to face towards the entity'eyes or feet. If not specified, defaults to feet.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity_anchor}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

Result

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

Output

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

History

Template:HistoryTable

References

<references />

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

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