Minecraft:Commands/swing: Difference between revisions
From SAS Gaming Wiki
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{exclusive|java}} | ||
{{Infobox command | {{Infobox command | ||
|name=swing | |name=swing | ||
|oplevel=2 | |oplevel=2 | ||
}} | }} | ||
Controls the swinging animation of entities' hands. | Controls the swinging animation of [[Minecraft:entities]]' hands.{{info needed|What entities does this apply to?}} | ||
== Syntax == | == Syntax == | ||
| Line 10: | Line 10: | ||
== Arguments == | == Arguments == | ||
{{ | {{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{{info needed|which entities?}} will animate a swing on the client side. | ||
: {{ | : {{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}} | ||
{{ | {{Output table|edition=je|On fail|0|0|0}} | ||
{{ | {{Output table|On success|1|1|the number of targeted entities}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java}} | ||
|{{HistoryLine||26.1|dev=snap1|Added {{ | |{{HistoryLine||26.1|dev=snap1|Added {{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 {{cd|@s}} and {{cd|mainhand}} respectively.}} | ||
}} | }} | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox new content|other}} | ||
{{ | {{Navbox commands}} | ||
de:Befehl/swing | [[Minecraft:es:Comandos/swing]] | ||
ja:コマンド/swing | [[Minecraft:de:Befehl/swing]] | ||
pt:Comandos/swing | [[Minecraft:ja:コマンド/swing]] | ||
ru:Команды консоли/swing | [[Minecraft:pt:Comandos/swing]] | ||
zh:命令/swing | [[Minecraft:ru:Команды консоли/swing]] | ||
[[Minecraft:zh:命令/swing]] | |||
Latest revision as of 11:05, 18 May 2026
Template:Exclusive Template:Infobox command Controls the swinging animation of Minecraft:entities' hands.Template:Info needed
Syntax
/swing [<targets>] [<mainhand|offhand>]
Arguments
- Specifies entities to swing. Defaults to the command executor.
- Not all entitiesTemplate:Info needed will animate a swing on the client side.
- Template:Arg desc
- 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
Template:Output table Template:Output table Template:Output table Template:Output table
History
Template:Navbox new content Template:Navbox commands
Minecraft:es:Comandos/swing Minecraft:de:Befehl/swing Minecraft:ja:コマンド/swing Minecraft:pt:Comandos/swing Minecraft:ru:Команды консоли/swing Minecraft:zh:命令/swing