Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/setworldspawn: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 4: Line 4:
* 2 {{only|java|short=1}}
* 2 {{only|java|short=1}}
* 1 {{only|bedrock|short=1}}
* 1 {{only|bedrock|short=1}}
|others=Cheat only{{only|bedrock|short=1}}
|others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}}
}}
}}
Sets the [[Minecraft:world spawn]].
Sets the [[Minecraft:world spawn]].


== Usage ==
== Usage ==
{{MC/In|java}}, this command can be used to set the world spawn in any [[Minecraft:dimension]] other than the [[Minecraft:Overworld]].
{{In|java}}, this command can be used to set the world spawn in any [[Minecraft:dimension]] other than the [[Minecraft:Overworld]].


Normal spawn spreading still applies, and can be set with a [[Minecraft:Commands/gamerule|gamerule]].
Normal spawn spreading still applies, and can be set with a [[Minecraft:Commands/gamerule|gamerule]].
Line 21: Line 21:


== Arguments ==
== Arguments ==
{{MC/Argument|pos|block_pos|spawnPoint: x y z|CommandPositionFloat}}
{{argument|pos|block_pos|spawnPoint: x y z|CommandPositionFloat}}
: Specifies the [[Minecraft:coordinates]] of the [[Minecraft:world spawn]]. If not specified, defaults to the block position of the command's execution.
: Specifies the [[Minecraft:coordinates]] of the [[Minecraft:world spawn]]. If not specified, defaults to the block position of the command's execution.
: {{MC/In|java}}, <code><''x''></code> and <code><''z''></code> should be in the range of [-30000000, 30000000), and <code><''y''></code> should be in the range of [-20000000, 20000000).
: {{IN|java}}, <code><''x''></code> and <code><''z''></code> should be in the range of [-30000000, 30000000), and <code><''y''></code> should be in the range of [-20000000, 20000000).
: {{MC/In|bedrock}}, <code><''x''></code> and <code><''z''></code> that are greater than 30,000,000 or less than -30,000,000 are reverted to 30,000,000 and -30,000,000 respectively; <code><''y''></code> values which are greater than 319 and less than -64 are reverted to 319 and -64 respectively.
: {{IN|bedrock}}, <code><''x''></code> and <code><''z''></code> that are greater than 30,000,000 or less than -30,000,000 are reverted to 30,000,000 and -30,000,000 respectively; <code><''y''></code> values which are greater than 319 and less than -64 are reverted to 319 and -64 respectively.
: {{MC/In|java}}:
: {{IN|java}}:
:: {{MC/Arg desc|je=block_pos}}
:: {{arg desc|je=block_pos}}
: {{MC/In|bedrock}}:
: {{IN|bedrock}}:
:: {{MC/Arg desc|be=CommandPositionFloat}}
:: {{arg desc|be=CommandPositionFloat}}


{{MC/El|je|short=1}}: {{MC/Argument|angle|angle}}
{{el|je|short=1}}: {{argument|angle|angle}}
: Specified the yaw angle to spawn with. Defaults to 0.0.
: Specified the yaw angle to spawn with. Defaults to 0.0.
: {{MC/Arg desc|je=angle}}
: {{arg desc|je=angle}}


== Result ==
== Result ==
Line 45: Line 45:
== Output ==
== Output ==


{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|0|0|0}}
{{Output table|edition=je|On fail|0|0|0}}
{{MC/Output table|On success|1|1|1}}
{{Output table|On success|1|1|1}}
{{MC/Output table|edition=be|On fail|0}}
{{Output table|edition=be|On fail|0}}
{{MC/Output table|On success|1}}
{{Output table|On success|1}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.7.2|dev=13w43a|Added {{MC/Cmd|setworldspawn|link=none}}.}}
|{{HistoryLine||1.7.2|dev=13w43a|Added {{cmd|setworldspawn|link=none}}.}}
|{{HistoryLine||1.16.2|dev=20w29a|Added {{MC/Cd|angle}} parameter for setting the default facing angle of a respawning player.}}
|{{HistoryLine||1.16.2|dev=20w29a|Added {{cd|angle}} parameter for setting the default facing angle of a respawning [[Minecraft:player]].}}
|{{HistoryLine||1.17|dev=21w10a|Now {{MC/Cmd|setworldspawn|link=none}} does not accept positions where <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000)<ref>{{bug|MC-210408|||fixed}}</ref>}}
|{{HistoryLine||1.17|dev=21w10a|Now {{cmd|setworldspawn|link=none}} does not accept positions where <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000)<ref>{{bug|MC-210408|||fixed}}</ref>}}
|{{HistoryLine||1.20.5|dev=24w03a|Now {{MC/Cmd|setworldspawn|link=none}} success only in the [[Minecraft:Overworld]]. Before, if executed in another dimension, the command acts as if it succeeded, but the world spawn is not changed.}}
|{{HistoryLine||1.20.5|dev=24w03a|Now {{cmd|setworldspawn|link=none}} success only in the [[Minecraft:Overworld]]. Before, if executed in another dimension, the command acts as if it succeeded, but the world spawn is not changed.}}
|{{HistoryLine||1.21.9|dev=25w31a|Spawn chunks have been removed, which until now were moved when {{MC/Cmd|setworldspawn|link=none}} was used.}}
|{{HistoryLine||1.21.9|dev=25w31a|[[Minecraft:Spawn chunk]]s have been removed, which until now were moved when {{cmd|setworldspawn|link=none}} was used.}}
|{{HistoryLine|||dev=Pre-Release 1|{{MC/Cmd|setworldspawn|link=none}} can now be used to set spawn point to another dimension than Overworld.|It now also takes in an optional {{MC/Cd|pitch}} argument.}}
|{{HistoryLine|||dev=Pre-Release 1|{{cmd|setworldspawn|link=none}} can now be used to set spawn point to another dimension than Overworld.|It now also takes in an optional {{cd|pitch}} argument.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|pocket alpha}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.16.0|dev=build 1|Added {{MC/Cmd|setworldspawn|link=none}}.}}
|{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|setworldspawn|link=none}}.}}
}}
}}


==See also==
==See also==


*{{MC/Cmd|spawnpoint}}
*{{cmd|spawnpoint}}
*{{MC/Cmd|clearspawnpoint}}
*{{cmd|clearspawnpoint}}


==References==
==References==
{{MC/Reflist}}
{{reflist}}


== External links ==
== External links ==
Line 83: Line 83:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/setworldspawn
[[Minecraft:de:Befehl/setworldspawn]]
ja:コマンド/setworldspawn
[[Minecraft:fr:Commandes/setworldspawn]]
pt:Comandos/setworldspawn
[[Minecraft:ja:コマンド/setworldspawn]]
ru:Команды консоли/setworldspawn
[[Minecraft:pt:Comandos/setworldspawn]]
uk:Команди консолі/setworldspawn
[[Minecraft:ru:Команды консоли/setworldspawn]]
zh:命令/setworldspawn
[[Minecraft:uk:Команди консолі/setworldspawn]]
[[Minecraft:zh:命令/setworldspawn]]

Latest revision as of 11:06, 21 May 2026

Template:Infobox command Sets the Minecraft:world spawn.

Usage

Template:In, this command can be used to set the world spawn in any Minecraft:dimension other than the Minecraft:Overworld.

Normal spawn spreading still applies, and can be set with a gamerule.

Syntax

  • Java Edition
setworldspawn [<pos>] [<angle>]
  • Bedrock Edition
setworldspawn [spawnPoint: x y z]

Arguments

Template:Argument

Specifies the Minecraft:coordinates of the Minecraft:world spawn. If not specified, defaults to the block position of the command's execution.
Template:IN, <x> and <z> should be in the range of [-30000000, 30000000), and <y> should be in the range of [-20000000, 20000000).
Template:IN, <x> and <z> that are greater than 30,000,000 or less than -30,000,000 are reverted to 30,000,000 and -30,000,000 respectively; <y> values which are greater than 319 and less than -64 are reverted to 319 and -64 respectively.
Template:IN:
Template:Arg desc
Template:IN:
Template:Arg desc

Template:El: Template:Argument

Specified the yaw angle to spawn with. Defaults to 0.0.
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

See also

References

Template:Reflist

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/setworldspawn Minecraft:fr:Commandes/setworldspawn Minecraft:ja:コマンド/setworldspawn Minecraft:pt:Comandos/setworldspawn Minecraft:ru:Команды консоли/setworldspawn Minecraft:uk:Команди консолі/setworldspawn Minecraft:zh:命令/setworldspawn