Minecraft Java · 1.16+
/setworldspawn
Set the world spawn and choose where players look when they appear.
Where players spawn
Choose Here or enter X, Y and Z. Absolute coordinates are easiest to use from the console.
Choose a facing direction
Yaw sets the heading: 0 south, 90 west, 180 north, −90 east. Java 1.21.9+ also supports pitch.
World spawn and personal respawn
A valid bed or respawn anchor takes priority. In Java 1.21.9+ the world spawn can also be set in another dimension.
FAQ Frequently asked questions 30 questions
Essential questions 5
What does /setworldspawn do?
Changes the world's default spawn point. This is different from a player's personal respawn point.
Who uses the new world spawn?
Generally new players and players without a valid personal respawn point. The command does not teleport anyone immediately.
How is this different from /spawnpoint?
/spawnpoint sets a specific player's personal respawn point; /setworldspawn changes the shared world spawn.
Does it override a bed or respawn anchor?
No. A valid bed, respawn anchor or /spawnpoint setting generally takes priority as a personal respawn location.
Why didn't the player appear at exactly X Y Z?
The game chooses a suitable spot near world spawn, subject to the spawn radius and available blocks.
Syntax and arguments 5
What is the syntax without arguments?
Use /setworldspawn in chat. The world spawn is set from the command execution position.
How do I enter exact coordinates?
Provide X Y Z, such as /setworldspawn 100 64 200.
Can I use relative coordinates?
Yes. ~ ~1 ~-5 is evaluated relative to the command execution position, which depends on the execution context.
What does the ^ coordinate notation mean?
It expresses local coordinates relative to the executor's facing. Use ^ on all three coordinates rather than mixing coordinate types.
Do I need a slash in the server console?
Use / in game chat. Server console, command blocks and .mcfunction typically use the command without a leading slash.
Practical examples 5
How do I set spawn near my lobby?
Stand on a safe platform and run /setworldspawn, or enter previously checked coordinates.
How do I set world spawn to 0 80 0?
Use /setworldspawn 0 80 0. Check that players can spawn safely around this location.
How do I face arriving players toward an entrance?
In Java 1.16.2–1.21.8 specify yaw, such as 90. In 1.21.9+ specify both yaw and pitch, such as 90 0.
How do I use this in a command block?
Choose the command-block context and preferably supply coordinates explicitly: the block's execution position differs from a player's position.
Can I use this in a data pack function?
Yes. Use setworldspawn without a leading / and account for the function's execution position and dimension.
Advanced usage 5
How do I set world spawn in another dimension?
From Java 1.21.9, run the command in the intended dimension. You can use execute in if you understand the coordinate context.
Does /setworldspawn teleport players instantly?
No. It changes future spawning behavior but does not move players already in the world.
How do I make players spawn at one exact spot?
Besides /setworldspawn, check the spawn-radius game rule and the safety of the platform. The rule's name may vary by version.
Does this move permanently loaded spawn chunks?
Spawn-chunk behavior has changed. Java 1.21.9 removed the former spawn-chunk mechanic; do not assume chunks stay loaded without version-specific verification.
Will it work on a server with plugins?
This is a vanilla Java command. Plugins can override spawning or command handling, so test behavior on the actual server.
Troubleshooting 4
Why does Minecraft say I lack permission?
Java normally requires command permission level 2 (an operator) or an equivalent configured permission.
Why are my coordinates rejected?
Check X Y Z syntax, avoid commas and respect the world's command-coordinate limits. The editor validates fields before copying.
Why doesn't the command work in the Nether?
Before Java 1.21.9 world spawn was restricted to the Overworld. Version 1.21.9 removed that restriction.
Why was the command accepted but a player spawned elsewhere?
Check their bed or anchor, spawn radius, platform safety and any plugins that alter spawning.
Minecraft versions 3
What changed in Java 1.16.2?
An optional horizontal facing angle (yaw) was introduced, including support for relative rotation.
What changed in Java 1.21.9?
The single angle argument was replaced with an optional yaw and pitch rotation pair. World spawn can also be set in other dimensions.
Which option works in Java 1.16–1.16.1?
Select Java 1.16–1.16.1 and omit rotation arguments. Coordinate arguments remain available.
Permissions and safety 3
Can a regular player run this command?
Usually not: they need an operator-equivalent permission or cheats enabled in a single-player world.
Is it safe to execute this from the console?
Yes, provided the coordinates and dimension are verified. It changes future spawn behavior for affected players, so check the platform first.
Does WopBlockStudio execute the command on my server?
No. The tool produces command text only. A properly authorized user decides whether to paste and execute it in Minecraft.
Rate this tool
Did this tool work for you? Tell us what went well or what could improve.
Sign in to leave a review