/swing

Cheats / op 2Java 26.3

Makes an entity swing its arm. Its basic form is /swing; it has 8 syntax forms and 3 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
8
Arguments
3

/swing syntax

Game data

Every 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.

/swing arguments
ArgumentExpectsLimits
<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.

Report an Issue

/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).