Minecraft:Commands/setworldspawn: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| 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]]. | {{MC/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}} | ||
: 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). | ||
: {{ | : {{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. | ||
: {{ | : {{MC/In|java}}: | ||
:: {{ | :: {{MC/Arg desc|je=block_pos}} | ||
: {{ | : {{MC/In|bedrock}}: | ||
:: {{ | :: {{MC/Arg desc|be=CommandPositionFloat}} | ||
{{ | {{MC/El|je|short=1}}: {{MC/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}} | ||
== Result == | == Result == | ||
| Line 45: | Line 45: | ||
== Output == | == Output == | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On fail|0|0|0}} | {{MC/Output table|edition=je|On fail|0|0|0}} | ||
{{Output table|On success|1|1|1}} | {{MC/Output table|On success|1|1|1}} | ||
{{Output table|edition=be|On fail|0}} | {{MC/Output table|edition=be|On fail|0}} | ||
{{Output table|On success|1}} | {{MC/Output table|On success|1}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.7.2|dev=13w43a|Added {{ | |{{HistoryLine||1.7.2|dev=13w43a|Added {{MC/Cmd|setworldspawn|link=none}}.}} | ||
|{{HistoryLine||1.16.2|dev=20w29a|Added {{ | |{{HistoryLine||1.16.2|dev=20w29a|Added {{MC/Cd|angle}} parameter for setting the default facing angle of a respawning player.}} | ||
|{{HistoryLine||1.17|dev=21w10a|Now {{ | |{{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.20.5|dev=24w03a|Now {{ | |{{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.21.9|dev=25w31a|Spawn chunks have been removed, which until now were moved when {{ | |{{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|||dev=Pre-Release 1|{{ | |{{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.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|pocket alpha}} | |{{MC/HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.16.0|dev=build 1|Added {{ | |{{HistoryLine||v0.16.0|dev=build 1|Added {{MC/Cmd|setworldspawn|link=none}}.}} | ||
}} | }} | ||
==See also== | ==See also== | ||
*{{ | *{{MC/Cmd|spawnpoint}} | ||
*{{ | *{{MC/Cmd|clearspawnpoint}} | ||
==References== | ==References== | ||
{{ | {{MC/Reflist}} | ||
== External links == | == External links == | ||
| Line 83: | Line 83: | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/setworldspawn | de:Befehl/setworldspawn | ||
Latest revision as of 20:13, 9 April 2026
Usage
in Template:Editions, 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:El: <pos>: block_pos
Template:El: 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.
- in Template:Editions,
<x>and<z>should be in the range of [-30000000, 30000000), and<y>should be in the range of [-20000000, 20000000). - in Template:Editions,
<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. - in Template:Editions:
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|block_pos}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- in Template:Editions:
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|vec3}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: <angle>: angle
- Specified the yaw angle to spawn with. Defaults to 0.0.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|angle}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
History
Java Edition
Bedrock Edition
See also
- REDIRECT Template:Command
- REDIRECT Template:Command
References
<references group="">
</references>
External links
de:Befehl/setworldspawn ja:コマンド/setworldspawn pt:Comandos/setworldspawn ru:Команды консоли/setworldspawn uk:Команди консолі/setworldspawn zh:命令/setworldspawn