Teleport Entities to Random Locations
The /spreadplayers command in Minecraft Bedrock Edition teleports entities to random locations within a chosen area. You can control the center point, how far apart the targets land from each other, and the overall boundary of the drop zone.
Players and server operators use this command to start survival games, scatter friends across a map for a challenge, or place entities randomly without teleporting each one by hand.
/spreadplayers <x: rotation> <z: rotation> <spreadDistance: float> <maxRange: float> <victim: target> [maxHeight: rotation]Spread players
| Argument | Type | What it means |
|---|---|---|
maxHeight | rotation | The maximum height that players can spawn. Default: `0.0`. |
maxRange | float | The furthest distance that players can spawn from each other. Default: `0.0`. |
spreadDistance | float | The distance between players when they spawn. Default: `0.0`. |
victim | target | A player name `string` or `target selector` to identify the player. |
x | rotation | The initial `x` position of the player. |
z | rotation | The initial `z` position of the player. |
/spreadplayers 0 0 10 50 @aTeleports all players to random spots around coordinates 0, 0 with a spread distance of 10 and a maximum range of 50.
/spreadplayers 100 -200 5 25 @pMoves the nearest player to a random location centered at X 100 and Z -200 within a 25 range.
/spreadplayers ~ ~ 15 100 @eScatters all loaded entities around your current X and Z position using a spread distance of 15 and a maximum range of 100.
/spreadplayers 500 500 20 200 @rSends one random player to a random point around X 500 and Z 500 inside a range of 200.
/spreadplayers -50 75 8 40 SteveTeleports the player named Steve to a random spot near X -50 and Z 75 with a maximum range of 40.
/spreadplayers 250 -100 12 80 @a 70Spreads all players around X 250 and Z -100 while limiting their maximum spawn height to 70.
/spreadplayers ~10 ~-10 30 150 @s 120Teleports the player running the command around a center point offset by 10 on X and -10 on Z with a maximum spawn height of 120.
In Minecraft Java Edition, the syntax includes a <respectTeams> argument to keep team members together and uses the word under before <maxHeight>: /spreadplayers <center> <spreadDistance> <maxRange> [under <maxHeight>] <respectTeams> <targets>.
You need the Game Directors permission level and cheats must be enabled in the world to use /spreadplayers.
Yes, the command teleports entities, so you can use a target selector like @e in the victim argument to move non-player entities.
You can add the optional maxHeight argument at the very end of the command to set the maximum height where players can spawn.
/aimassist/camera/camerashake/clearspawnpoint/controlscheme/damage/effect/event/gamemode/hud/inputpermission/kill/ride/spawnpoint/summon/teleport