Minecraft:Commands/rotate: Difference between revisions
More actions
imported>YukiSugar mNo edit summary |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Exclusive|java}} | {{MC/Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
|name=rotate | |name=rotate | ||
| Line 5: | Line 5: | ||
}} | }} | ||
Changes the rotation of an | Changes the rotation of an entity. | ||
== Syntax == | == Syntax == | ||
| Line 16: | Line 16: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|target|entity}} | ||
: Specifies the entity to rotate. | : Specifies the entity to rotate. | ||
: {{ | : {{MC/Arg desc|je=entity|amount=single|type=entities}} | ||
{{ | {{MC/Argument|rotation|rotation}} | ||
: Specifies the rotation. | : Specifies the rotation. | ||
: {{ | : {{MC/Arg desc|je=rotation}} | ||
{{ | {{MC/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}} | ||
{{ | {{MC/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}} | ||
{{ | {{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. | ||
: {{ | : {{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 {{ | |{{HistoryLine||1.21.2|dev=24w40a|Added {{MC/Cmd|rotate|link=none}}.}} | ||
|{{HistoryLine|||dev=pre1|{{ | |{{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 | |||
ja:コマンド/rotate | |||
pt:Comandos/rotate | |||
ru:Команды консоли/rotate | |||
zh:命令/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
References
<references />
de:Befehl/rotate ja:コマンド/rotate pt:Comandos/rotate ru:Команды консоли/rotate zh:命令/rotate