
/swing
Makes an entity swing its arm. Its basic form is /swing; it has 8 syntax forms and 3 arguments. Permission: Cheats / op 2.
/swing syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/swing/swing <targets>/swing <targets> mainhand/swing <targets> mainhand <animation>/swing <targets> mainhand <animation> <duration>/swing <targets> offhand/swing <targets> offhand <animation>/swing <targets> offhand <animation> <duration>/swing arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<targets> | Target selector or player name (@s, @p, @a, @e, @r) | one or more |
<animation> | Hand (mainhand or offhand) | — |
<duration> | Duration (number with d, s or t) | at least 1 |
Other commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Makes an entity swing its arm. It has 8 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/swing FAQ (Java 26.3)
What does /swing do in Minecraft?
Makes an entity swing its arm.
What is the syntax of /swing?
The basic form is /swing. All forms are listed above.
Do you need cheats for /swing?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).