Java 26.2
Spread Players
Spread Plan
Place @a between 8 and 32 blocks from (0, 0).
/spreadplayers 0 0 8 32 false @a
Scatter targets across an area
The /spreadplayers argument order — center, spacing, range, then targets — is easy to scramble, and the difference between minimum spacing and max range decides whether players land clustered or scattered across the map. Fill each value here, keep teams together when you mean to, and copy a command that parses first try.
The argument order trips people up: center X/Z, then spread distance, then max range, then the targets. The generator lays out each field so the command comes out in the right order.
Spread distance is the minimum gap kept between scattered targets; max range is how far from the center they may land. A large range with a small distance scatters players widely but allows them close together.
Enable respectTeams. Players on the same team are treated as a group and land at one spot instead of being scattered individually.
Java 26.2
Place @a between 8 and 32 blocks from (0, 0).
/spreadplayers 0 0 8 32 false @a