/

/spreadplayers

op 2World

/spreadplayers teleports targets to random safe positions within a radius of a centre point, keeping them at least a set distance apart. It is how most minigames handle their opening scatter.

Command2 to fix
27
/spreadplayers 0 0 false @e
  • Minimum gap is required.
  • Maximum range is required.
Press C to copy
x
z

0 0

~ is relative to where the command runs from

Minimum gap is required.

Maximum range is required.

All entities
@e

Who or what the command applies to

optional

Requires the under form (1.16+)

Examples

  • Scatter for a game
    /spreadplayers 0 0 200 1000 false @a

Common questions about /spreadplayers

Why does it say it could not find a spot?

The minimum gap multiplied by the number of targets does not fit inside the maximum range. Raise the range or lower the gap.

Where exactly do players land?

On the highest solid block at the chosen position, so they arrive on the surface rather than inside terrain. In the Nether, where there is no clear surface, results are far less predictable.