Minecraft:Commands/swing: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{ | {{MC/Exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
|name=swing | |name=swing | ||
| Line 10: | Line 10: | ||
== Arguments == | == Arguments == | ||
{{ | {{MC/Argument|targets|entity}} | ||
: Specifies entities to swing. Defaults to the command executor. | : Specifies entities to swing. Defaults to the command executor. | ||
: Not all entities{{ | : Not all entities{{MC/Info needed|which entities?}} will animate a swing on the client side. | ||
: {{ | : {{MC/Arg desc|je=entity|amount=multiple|type=entities}} | ||
{{cd|<mainhand{{!}}offhand>}} | {{cd|<mainhand{{!}}offhand>}} | ||
: Specifies the arm to swing. Defaults to mainhand. | : Specifies the arm to swing. Defaults to mainhand. | ||
| Line 25: | Line 25: | ||
== 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|the number of targeted entities}} | {{MC/Output table|On success|1|1|the number of targeted entities}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||26.1|dev=snap1|Added {{ | |{{HistoryLine||26.1|dev=snap1|Added {{MC/Cmd|swing|link=none}}.}} | ||
|{{HistoryLine|||dev=snap3|Both arguments are now optional, and default to {{ | |{{HistoryLine|||dev=snap3|Both arguments are now optional, and default to {{MC/Cd|@s}} and {{MC/Cd|mainhand}} respectively.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{Navbox new content|other}} | {{MC/Navbox new content|other}} | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/swing | de:Befehl/swing | ||
Latest revision as of 20:14, 9 April 2026
Script error: No such module "Exclusive". Template:Infobox command Controls the swinging animation of entities' hands.
Syntax
/swing [<targets>] [<mainhand|offhand>]
Arguments
<targets>: entity
- Specifies entities to swing. Defaults to the command executor.
- Not all entities
<more information needed></more information needed>will animate a swing on the client side. - {{#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|}}
- Specifies the arm to swing. Defaults to mainhand.
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}}|the number of targeted entities}}{{#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
| |||||||||||||
| |||||||||||||
de:Befehl/swing ja:コマンド/swing pt:Comandos/swing ru:Команды консоли/swing zh:命令/swing