MiniBench

MiniBench / Learn / Commands

Command Bedrock Edition ~2 min read

The /setworldspawn command

Set the world's default spawn — where new players and the compass point.

What it does

/setworldspawn sets the shared spawn for the whole world. New players start here, and it’s where anyone without a personal spawnpoint respawns — perfect for putting the lobby of a map right where you want it.

Syntax

setworldspawn [x y z]
x y z
The world spawn position. Omit to use the runner’s current spot.

Examples

setworldspawn

Set world spawn to where you’re standing.

setworldspawn 0 70 0

Pin world spawn to exact coordinates.

See it in action

Before and after running /setworldspawn — in MiniBench's 3D preview and in Minecraft.

Command run

setworldspawn
In Minecraft
/setworldspawn setting the world spawn in Minecraft (before)

Before

/setworldspawn setting the world spawn in Minecraft (after)

After

Not affiliated with Mojang or Microsoft. Minecraft is a trademark of Mojang Synergies AB.

Watch out for

Write it in MiniBench with autocomplete and live validation, then run it in Minecraft.