Set the World Spawn
Change where new players and players with no bed spawn
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Sets the global world spawn point to your current position — new players joining and players without a bed respawn here. Useful for servers and custom maps to control where players first arrive.
/setworldspawn ~ ~ ~20 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Stand at the location you want as the world spawn.
- Open chat (T on Java, / on Bedrock) and paste the command.
- Press Enter — the world spawn is now set.
Related commands
Set where you respawn after dying to your current location
/spawnpoint @s ~ ~ ~Pull the nearest mob of a specific type to your location
/tp @e[type=cow,limit=1,sort=nearest] @s