<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fspreadplayers</id>
	<title>Minecraft:Commands/spreadplayers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fspreadplayers"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/spreadplayers&amp;action=history"/>
	<updated>2026-04-09T06:16:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/spreadplayers&amp;diff=49810&amp;oldid=prev</id>
		<title>imported&gt;RedX at 12:36, 5 April 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/spreadplayers&amp;diff=49810&amp;oldid=prev"/>
		<updated>2026-04-05T12:36:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox command&lt;br /&gt;
|name=spreadplayers&lt;br /&gt;
|oplevel=&lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
|others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
[[File:Spreadplayer command example.jpg|thumb|Example of the /spreadplayers command used on zombies. The /spreadplayers command spreads the entities in a square. This example uses 10 as the radius.]]&lt;br /&gt;
Teleports [[Minecraft:entities]] to random surface locations within an area. Despite its name, this command can be used to teleport any entities, not just players.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, targets are always placed on the highest non-[[Minecraft:air]] block at a horizontal position. If in &amp;lt;code&amp;gt;under&amp;lt;/code&amp;gt; mode, targets are always placed on the highest non-[[Minecraft:air]] block that is under the specified maximum height and with two air blocks above it. The horizontal coordinates are invalid if there&amp;#039;s no such non-[[Minecraft:air]] block.&lt;br /&gt;
&lt;br /&gt;
{{IN|bedrock}}, targets are always placed one block above the highest solid block at a horizonal position. If with &amp;lt;code&amp;gt;maxHeight: value&amp;lt;/code&amp;gt; argument, targets are always placed one block above the highest solid block that is under the specified maximum height. The horizontal coordinates are invalid if there&amp;#039;s no such solid block, or if the solid block does not have two air blocks above it.&lt;br /&gt;
&lt;br /&gt;
Targets are never placed on [[Minecraft:lava]], [[Minecraft:water]], [[Minecraft:bubble column]], or [[Minecraft:fire]]. Positions above these blocks are invalid. {{IN|bedrock}}, [[Minecraft:magma block]], [[Minecraft:wither rose]], [[Minecraft:campfire]], [[Minecraft:soul campfire]], [[Minecraft:sweet berry bush]], [[Minecraft:nether portal (block)|nether portal]], [[Minecraft:end portal (block)|end portal]], and [[Minecraft:end gateway (block)|end gateway]] are also invalid positions.&lt;br /&gt;
&lt;br /&gt;
{{IN|java}}, the entities are spread into the command&amp;#039;s execution dimension.&lt;br /&gt;
&lt;br /&gt;
{{IN|bedrock}}, the command changes an entity&amp;#039;s position without changing dimension. But the valid position is calculated in the command&amp;#039;s execution dimension.&lt;br /&gt;
&lt;br /&gt;
If there are no valid position, or the targets are too many to satisfy the minimum distance (&amp;lt;code&amp;gt;&amp;lt;spreadDistance&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;spreadDistance: float&amp;lt;/code&amp;gt;) requirement within valid positions, no entities are spread.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;spreadplayers &amp;lt;nowiki&amp;gt;&amp;lt;center&amp;gt;&amp;lt;/nowiki&amp;gt; &amp;lt;spreadDistance&amp;gt; &amp;lt;maxRange&amp;gt; &amp;lt;respectTeams&amp;gt; &amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Spreads players to positions on the top non-air block.&lt;br /&gt;
: &amp;lt;code&amp;gt;spreadplayers &amp;lt;nowiki&amp;gt;&amp;lt;center&amp;gt;&amp;lt;/nowiki&amp;gt; &amp;lt;spreadDistance&amp;gt; &amp;lt;maxRange&amp;gt; under &amp;lt;maxHeight&amp;gt; &amp;lt;respectTeams&amp;gt; &amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:: Spreads players to positions under the maximum height, on the highest non-[[Minecraft:air]] block with two air blocks above it.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;spreadplayers &amp;lt;x: value&amp;gt; &amp;lt;z: value&amp;gt; &amp;lt;spreadDistance: float&amp;gt; &amp;lt;maxRange: float&amp;gt; &amp;lt;victim: target&amp;gt; [maxHeight: value]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|center|vec2}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|x: value|RelativeFloat}} and {{argument|be=1|z: value|RelativeFloat}}&lt;br /&gt;
: Specifies the center of the region to spread targets to.&lt;br /&gt;
: {{arg desc|je=vec2|be=RelativeFloat}}&lt;br /&gt;
&lt;br /&gt;
{{argument|spreadDistance|float|spreadDistance: float|float}}&lt;br /&gt;
: Specifies the minimum distance between each two targets.&lt;br /&gt;
: {{arg desc|je=float|be=float}} And it should be at least 0.0.&lt;br /&gt;
&lt;br /&gt;
{{argument|maxRange|float|maxRange: float|float}}&lt;br /&gt;
: Specifies the maximum distance on each horizontal axis from the center of the area to spread targets (thus, the area is square, not circular).&lt;br /&gt;
: {{arg desc|je=float|min=1.0|be=float}} {{IN|bedrock}}, it should be at least 1.0 greater than &amp;lt;code&amp;gt;spreadDistance: float&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|maxHeight|integer}}&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}：{{argument|be=1|maxHeight: value|RelativeFloat}}&lt;br /&gt;
: Specifies the maximum height for the target positions.&lt;br /&gt;
: {{IN|je}}, {{lcfirst:{{arg desc|je=integer}}}}&lt;br /&gt;
: {{IN|be}}, {{lcfirst:{{arg desc|be=RelativeFloat}}}}&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|respectTeams|bool}}&lt;br /&gt;
: Specifies whether to keep entities on the same team together. If &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, targets on the same team are teleported to the same position.&lt;br /&gt;
: {{arg desc|je=bool}}&lt;br /&gt;
&lt;br /&gt;
{{argument|targets|entity|victim: target|CommandSelector&amp;lt;Actor&amp;gt;}}&lt;br /&gt;
: Specifies the targets to spread.&lt;br /&gt;
: {{arg desc|je=entity|amount=multiple|type=entities|be=actor}}&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;spreadDistance: float&amp;lt;/code&amp;gt; is lower than 0.0.|N/A|fail}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;maxRange: float&amp;lt;/code&amp;gt; is lower than &amp;lt;code&amp;gt;spreadDistance: float&amp;lt;/code&amp;gt; plus one.}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; fails to resolve to one or more entities (named players must be online).|fail}}&lt;br /&gt;
{{Result table|There is not valid position (lava, water, etc. are invalid) to spread to.}}&lt;br /&gt;
{{Result table|cmd=/spreadplayers ... under ...|There is no valid position (two air block above a non-air block that is not lava, water, bubble column or fire) under &amp;lt;code&amp;gt;&amp;lt;maxHeight&amp;gt;&amp;lt;/code&amp;gt; to spread to.||N/A}}&lt;br /&gt;
{{Result table|cmd=|Though there are valid positions, but the targets are too many to satisfy the &amp;lt;code&amp;gt;&amp;lt;spreadDistance&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;spreadDistance: float&amp;lt;/code&amp;gt; requirement within these valid positions.||fail}}&lt;br /&gt;
{{Result table|cmd=|succeed}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On fail|0|0|0}}&lt;br /&gt;
{{Output table|cmd=/spreadplayers ... true ...|On success|1|1|the number of teams that these targets are in}}&lt;br /&gt;
{{Output table|cmd=/spreadplayers ... false ...|On success|1|1|the number of targeted entities}}&lt;br /&gt;
{{Output table|cmd=|edition=be|On fail|0}}&lt;br /&gt;
{{Output table|On success|1}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
* {{IN|java}}, to teleport all [[Minecraft:players]] by team to random surface locations in a 1,000×1,000-block area centered on (0,0), with a minimum distance between teams of 200 blocks:&lt;br /&gt;
** &amp;lt;code&amp;gt;spreadplayers 0 0 200 500 true @a&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
* {{IN|java}}, to teleport one random player from each of three teams (Red, Blue, and Green), as well as Alice and Bob, to random surface locations in a 200×200-block area centered on (0,0), with a minimum distance between players of 50 blocks:&lt;br /&gt;
** &amp;lt;code&amp;gt;spreadplayers 0 0 50 100 false @r[team=Red] @r[team=Blue] @r[team=Green] Alice Bob&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{Expand section}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.6.1|dev=13w23a|Added {{cmd|spreadplayers|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.16|dev=20w21a|Added an optional &amp;lt;code&amp;gt;&amp;lt;maxHeight&amp;gt;&amp;lt;/code&amp;gt; argument to specify maximum height.}}&lt;br /&gt;
|{{HistoryLine||1.19.4|dev=22w03a|Now entities are spread to the command&amp;#039;s execution dimension.&amp;lt;ref&amp;gt;{{Bug|MC-181832|resolution=Fixed}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|pocket}}&lt;br /&gt;
|{{HistoryLine||1.0.5|dev=alpha 1.0.5.0|Added {{cmd|spreadplayers|link=none}}.}}&lt;br /&gt;
|{{HistoryLine|bedrock}}&lt;br /&gt;
|{{HistoryLine||1.21.20|dev=beta 1.21.10.23|Added an optional &amp;lt;code&amp;gt;maxHeight: value&amp;lt;/code&amp;gt; argument.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*{{cmd|tp}} and {{cmd|teleport}} — different commands that teleport a single player or entity to a specific position (even underground).&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/spreadplayers?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/spreadplayers&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=August 1, 2024}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/spreadplayers]]&lt;br /&gt;
[[Minecraft:ja:コマンド/spreadplayers]]&lt;br /&gt;
[[Minecraft:pt:Comandos/spreadplayers]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/spreadplayers]]&lt;br /&gt;
[[Minecraft:uk:Команди консолі/spreadplayers]]&lt;br /&gt;
[[Minecraft:zh:命令/spreadplayers]]&lt;/div&gt;</summary>
		<author><name>imported&gt;RedX</name></author>
	</entry>
</feed>