How to Use the SetWorldSpawn Command in Minecraft
This Minecraft tutorial explains how to use the /setworldspawn command with screenshots and step-by-step instructions.
You can use the /setworldspawn command to set the spawn point for a Minecraft world. Let's explore how to use this cheat (game command).
Supported Platforms
The /setworldspawn command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
Java Edition (PC/Mac) | Yes (1.7.2) |
Pocket Edition (PE) | Yes (0.16.0) |
Xbox 360 | No |
Xbox One | Yes (1.2) |
PS3 | No |
PS4 | Yes (1.14.0) |
Wii U | No |
Nintendo Switch | Yes (1.5.0) |
Windows 10 Edition | Yes (0.16.0) |
Education Edition | Yes |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
SetWorldSpawn Command
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
SetWorldSpawn Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), the syntax to set the world spawn point is:
/setworldspawn [pos]
Definitions
- pos is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game.
SetWorldSpawn Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the syntax to set the world spawn point is:
/setworldspawn [spawnPoint]
Definitions
- spawnPoint is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game. Learn about the coordinate system.
SetWorldSpawn Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, the syntax to set the world spawn point is:
/setworldspawn [spawnPoint]
Definitions
- spawnPoint is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game. Learn about the coordinate system.
SetWorldSpawn Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, the syntax to set the world spawn point is:
/setworldspawn [spawnPoint]
Definitions
- spawnPoint is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game. Learn about the coordinate system.
SetWorldSpawn Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, the syntax to set the world spawn point is:
/setworldspawn [spawnPoint]
Definitions
- spawnPoint is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game. Learn about the coordinate system.
SetWorldSpawn Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, the syntax to set the world spawn point is:
/setworldspawn [spawnPoint]
Definitions
- spawnPoint is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game. Learn about the coordinate system.
SetWorldSpawn Command in Minecraft Education Edition
In Minecraft Education Edition, the syntax to set the world spawn point is:
/setworldspawn [spawnPoint]
Definitions
- spawnPoint is optional. It is the x y z coordinate to use for the world spawnpoint. If you don't specify a coordinate, the command will use your current position in the game. Learn about the coordinate system.
Examples
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac)
To set the world spawn point to your current location in Minecraft Java Edition (PC/Mac):
/setworldspawn
To set the world spawn point to an absolute position of (-113, 92, 211) as the (x, y, z) coordinate:
/setworldspawn -113 92 211
To set the world spawn point to a relative position (that is 19 blocks West and 10 blocks North of our current position):
/setworldspawn ~-19 ~ ~-10
Example in Pocket Edition (PE)
To set the world spawn point to your current location in Minecraft PE:
/setworldspawn
To set the world spawn point to an absolute position of (22, 64, 35) as the (x, y, z) coordinate:
/setworldspawn 22 64 35
To set the world spawn point to a relative position (that is 5 blocks East and 8 blocks North of our current position):
/setworldspawn ~5 ~ ~-8
Example in Xbox One Edition
To set the world spawn point to your current location in Minecraft Xbox One Edition:
/setworldspawn
To set the world spawn point to an absolute position of (8, 70, -5) as the (x, y, z) coordinate:
/setworldspawn 8 70 -5
To set the world spawn point to a relative position (that is 6 blocks West and 3 blocks South of our current position):
/setworldspawn ~-6 ~ ~3
Example in PS4 Edition
To set the world spawn point to your current location in Minecraft PS4 Edition:
/setworldspawn
To set the world spawn point to an absolute position of (10, 67, -5) as the (x, y, z) coordinate:
/setworldspawn 10 67 -5
To set the world spawn point to a relative position (that is 8 blocks East and 3 blocks North of our current position):
/setworldspawn ~8 ~ ~-3
Example in Nintendo Switch Edition
To set the world spawn point to your current location in Minecraft Nintendo Switch Edition:
/setworldspawn
To set the world spawn point to an absolute position of (-100, 61, 2) as the (x, y, z) coordinate:
/setworldspawn -100 61 2
To set the world spawn point to a relative position (that is 10 blocks East and 2 blocks North of our current position):
/setworldspawn ~10 ~ ~-2
Example in Windows 10 Edition
To set the world spawn point to your current location in Minecraft Windows 10 Edition:
/setworldspawn
To set the world spawn point to an absolute position of (8, 67, 32) as the (x, y, z) coordinate:
/setworldspawn 8 67 32
To set the world spawn point to a relative position (that is 2 blocks West and 14 blocks South of our current position):
/setworldspawn ~-2 ~ ~14
Example in Education Edition
To set the world spawn point to your current location in Minecraft Education Edition:
/setworldspawn
To set the world spawn point to an absolute position of (21, 75, 6) as the (x, y, z) coordinate:
/setworldspawn 21 75 6
To set the world spawn point to a relative position (that is 9 blocks East and 6 blocks North of our current position):
/setworldspawn ~9 ~ ~-6
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we will set the world spawn point to a coordinate of (-113, 92, 211):
/setworldspawn -113 92 211
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the spawnpoint for the Minecraft world will be changed to the new coordinates.
In this example, the new world spawnpoint will be at (-113, 92, 211).
Congratulations, you just learned how to use the /setworldspawn command in Minecraft!