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/spawnpoint: 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}}
}}
}}
This command sets the spawn point for a player.
This command sets the [[Minecraft:spawn point]] for a [[Minecraft:player]].


This command works in any [[Minecraft:dimension]] and can set the player's spawn point into any dimension.{{Note|You will have to be in the dimension you want to set your spawn in. Alternatively, you can use <code>/execute at <dimension> run spawnpoint ...</code> to set your spawn in a dimension without being there.}}.
This command works in any [[Minecraft:dimension]] and can set the player's spawn point into any dimension.{{Note|You will have to be in the dimension you want to set your spawn in. Alternatively, you can use <code>/execute at <dimension> run spawnpoint ...</code> to set your spawn in a dimension without being there.}}.
Line 17: Line 17:


== Arguments ==
== Arguments ==
{{MC/Argument|targets|entity|player: target|CommandSelector<Player>}}
{{argument|targets|entity|player: target|CommandSelector<Player>}}
: Specifies the player whose spawn point should be set. If not specified, defaults to the command's executor.
: Specifies the player whose spawn point should be set. If not specified, defaults to the command's executor.
: {{MC/Arg desc|je=entity|amount=multiple|type=players|be=player}}
: {{arg desc|je=entity|amount=multiple|type=players|be=player}}


{{MC/Argument|pos|block_pos|spawnPos: x y z|CommandPositionFloat}}
{{argument|pos|block_pos|spawnPos: x y z|CommandPositionFloat}}
: Specifies the coordinates of the player's new spawn point. If not specified, defaults to the position of the specified player(s) {{MC/In|bedrock}} or the command's execution {{MC/In|java}}.
: Specifies the coordinates of the player's new spawn point. If not specified, defaults to the position of the specified player(s) {{in|bedrock}} or the command's execution {{in|java}}.
: {{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}}
: Specifies the yaw angle to spawn with. Defaults to the direction the executor is facing.
: Specifies the yaw angle to spawn with. Defaults to the direction the executor is facing.
: {{MC/Arg desc|je=angle}}
: {{arg desc|je=angle}}


== Result ==
== Result ==
Line 47: Line 47:
== 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|the number of players whose spawnpoints are set}}
{{Output table|On success|1|1|the number of players whose spawnpoints are set}}
{{MC/Output table|edition=be|On fail|0}}
{{Output table|edition=be|On fail|0}}
{{MC/Output table|On success|the number of players whose spawnpoints are set}}
{{Output table|On success|the number of players whose spawnpoints are set}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.4.2|dev=12w32a|Added {{MC/Cmd|spawnpoint|link=none}}.}}
|{{HistoryLine||1.4.2|dev=12w32a|Added {{cmd|spawnpoint|link=none}}.}}
|{{MC/HistoryLine||1.16|dev=20w12a|Added support for being run in any dimension.}}
|{{HistoryLine||1.16|dev=20w12a|Added support for being run in any dimension.}}
|{{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 player.}}
|{{HistoryLine||1.17|dev=21w10a|{{MC/Cmd|setworldspawn|link=none}} now cannot teleport an entity to a position 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|{{cmd|setworldspawn|link=none}} now cannot teleport an entity to a position where <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000).<ref>{{bug|MC-210408|||fixed}}</ref>}}
|{{MC/HistoryLine||1.21.9|dev=Pre-Release 1|The command now optionally takes in a pitch argument.}}
|{{HistoryLine||1.21.9|dev=Pre-Release 1|The command now optionally takes in a 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|spawnpoint|link=none}}.}}
|{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|spawnpoint|link=none}}.}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.16.0|dev=beta 1.16.0.57|{{MC/Cmd|spawnpoint|link=none}} can now be used in the Nether.}}
|{{HistoryLine||1.16.0|dev=beta 1.16.0.57|{{cmd|spawnpoint|link=none}} can now be used in the [[Minecraft:Nether]].}}
|{{HistoryLine||1.21.100|dev=Preview 1.21.100.20|{{MC/Cmd|spawnpoint|link=none}} can now be used in the End.}}
|{{HistoryLine||1.21.100|dev=Preview 1.21.100.20|{{cmd|spawnpoint|link=none}} can now be used in the [[Minecraft:End]].}}
}}
}}


== See also ==
== See also ==
* {{MC/Cmd|clearspawnpoint}}
* {{cmd|clearspawnpoint}}
* {{MC/Cmd|setworldspawn}}
* {{cmd|setworldspawn}}


== Notes ==
== Notes ==
Line 89: Line 89:


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


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

Latest revision as of 11:06, 21 May 2026

Template:Infobox command This command sets the Minecraft:spawn point for a Minecraft:player.

This command works in any Minecraft:dimension and can set the player's spawn point into any dimension.Template:Note.

Syntax

  • Java Edition
spawnpoint [<targets>] [<pos>] [<angle>]
  • Bedrock Edition
spawnpoint [player: target] [spawnPos: x y z]

Arguments

Template:Argument

Specifies the player whose spawn point should be set. If not specified, defaults to the command's executor.
Template:Arg desc

Template:Argument

Specifies the coordinates of the player's new spawn point. If not specified, defaults to the position of the specified player(s) Template:In or the command's execution Template:In.
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

Specifies the yaw angle to spawn with. Defaults to the direction the executor is facing.
Template:Arg desc

Result

Template:Result table Template:Result table 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

Notes

Template:Notelist

References

<references/>

External links

Navigation

Template:Navbox commands

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