Spawnpoint Command Generator — /spawnpoint Set Respawn Location (Java Edition)
Most of these need operator permission — run them from an op's chat, a command block, or the server console.
How to Use the Spawnpoint Command Generator
- Leave the target empty to set your own respawn point, or enter a player name / selector to set someone else’s.
- Leave X/Y/Z empty to use the target’s current position, or fill them in to set an exact respawn location elsewhere.
- Optionally set an angle (in degrees) to control which direction the player faces on respawn.
- Copy the generated
/spawnpointcommand into a command block, the console, or an operator’s chat.
Command Syntax Reference
/spawnpoint [target] [x] [y] [z] [angle]
/spawnpoint sets a per-player respawn point that works in the Overworld (its Nether counterpart is /setworldspawn‘s dimension-aware sibling command /spawnpoint also supports, but the classic use is Overworld). Running it with just a target and no coordinates uses wherever that player is currently standing. This is different from a bed or respawn anchor only in that it’s set by command rather than by physically sleeping/charging – functionally, once set, the player respawns there the same way, and it persists even if the underlying block is later broken.
Frequently Asked Questions
What’s the difference between /spawnpoint and /setworldspawn?
/spawnpoint sets a respawn location for one specific player (or selector-matched group). /setworldspawn instead sets the default world spawn that brand-new players and anyone without a personal spawnpoint respawn at. They’re independent – setting one player’s spawnpoint doesn’t touch the world spawn.
Does the respawn point stay set if the bed or anchor is broken?
Yes – once /spawnpoint sets a location, it’s stored on the player independent of any block. Breaking a bed at that location afterward doesn’t clear the spawnpoint; the player still respawns there (though without a valid bed/anchor nearby they may see the usual “no valid respawn point” message on death in survival, depending on the situation).
Can I set a spawnpoint in the Nether or the End with this command?
The dimension follows wherever the command is executed from – running /spawnpoint while physically in the Nether (or via /execute in the_nether run spawnpoint ...) sets a Nether respawn point, matching the same dimension-anchor behavior as respawn anchors.
What does the angle argument actually control?
It sets the yaw (horizontal facing direction) the player will have immediately upon respawning, in degrees. It only applies when coordinates are also specified – it’s ignored if you’re just using the target’s current position.
Related Tools
- Teleport Command Generator – move a player right now instead of setting where they respawn later.
- Spreadplayers Command Generator – scatter multiple players before assigning individual spawnpoints.
- Gamemode Command Generator – switch modes for testing a new respawn location.