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)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 9: Line 9:


== Usage ==
== Usage ==
{{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 38: Line 38:
{{Result table}}
{{Result table}}
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}
{{Result table|The execution dimension is not the [[Minecraft:Overworld]].|fail|fail}}
{{Result table|The execution dimension is not the [[Minecraft:Overworld]].|success|fail}}
{{Result table|The <''x''> or <''z''> exceed the range of [-30000000, 30000000), or the <''y''> argument exceeds the range of [-20000000, 20000000).||success}}
{{Result table|The <''x''> or <''z''> exceed the range of [-30000000, 30000000), or the <''y''> argument exceeds the range of [-20000000, 20000000).|fail|success}}
{{Result table|succeed}}
{{Result table|succeed}}
{{Result table}}
{{Result table}}

Latest revision as of 11:03, 16 June 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