PlayersJavaBedrock

/spreadplayers

Randomly distributes the targeted entities around a center point, guaranteeing a minimum distance between them and keeping them within a maximum range. Optionally respects teams (keeping teammates together) and can cap the spread height for the under-roof variant. Useful for PvP match starts and minigames.

What is /spreadplayers used for?

What /spreadplayers is for

Randomly scatters the targeted entities around a center point, keeping a minimum distance between them and within a maximum range.

When to use /spreadplayers

Start a PvP match or minigame with players spread out, scatter mobs across an area, or relocate a crowd without picking spots by hand.

Tips for /spreadplayers

Set respectTeams to true to keep teammates clustered together. The 'under <maxHeight>' variant spreads players beneath a ceiling instead of on the surface.

Syntax

Alternate forms:

Parameters

x z
coords
Center of the spread area.
spreadDistance
float
Minimum distance between targets.
maxRange
float
Maximum distance from center.
respectTeams
boolean
true keeps teammates clustered.
targets
entity selector
Entities to spread.

Command builder

Fill in the options below to generate a ready-to-paste /spreadplayers command.

Center of the spread area.

Minimum distance between targets.

Maximum distance from center.

true keeps teammates clustered.

Entities to spread.

Examples

  • Scatter all players at least 50 blocks apart within 200 of origin.

  • Spread players, keeping teams together.

Permission level

/spreadplayers requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.