What command do I use to make everyone spawn at one place? because I am making a map and I don't know how to make everyone spawn at one place, the rule place.
2 Answers
All the answers you need can be found on the Wiki
The /setworldspawn <x> <y> <z>
command sets the spawn for any new players who join said world, or if they do not have a spawnpoint already.
The /spawnpoint [user] <x> <y> <z>
command sets the spawn point for a specific player.
If you'd need a specific point (similar to Essentials' /spawn
command) to spawn (presuming that everybody's mainly in Survival), I'd recommend making a spawn platform with a command block clock that teleports anyone on that platform to the rule room and set the /setworldspawn
location to that platform.
This way, new players are captured by the /tp
clock (on the platform) and are teleported straight to the rule room (a static co-ordinate).
And if you'd like to force all players' spawnpoint (only works with existing players), run a clock with /spawnpoint @a <Location>
.
-
Just curious does setworldspawn lock the spawn to the specific spot unlike the natural world spawn?– ModdlCommented Oct 27, 2015 at 4:12
-
It literally changes world spawn, and from experience, it doesn't lock to a spot. Commented Oct 27, 2015 at 4:19
-
Normally the world spawn allows players to spawn in an range, does setworldspawn still do that or it forces the players to spawn on the block?– ModdlCommented Oct 27, 2015 at 4:20
-
2The behavior of spawn point depends on player's game mode. If your server's default gamemode is Adventure, new players will spawn at exact coordinates, unconditionally. Players in Survival mode and higher will spawn randomly in a certain range, and on topmost block for given horizontal coords.– Orc JMRCommented Oct 27, 2015 at 4:23
-
@OrcJMR Actually, couldn't you just use a clock with
/setspawnpoint @a <Location>
? Commented Oct 27, 2015 at 4:39
/setworldspawn ~0 ~0 ~0
The "~0"s state that you want something set to your exact standing position. If you want something precise, such as for example, if you were making an illuminati map then do something like
/setworldspawn ~3 ~3 ~3
Happy MineCrafting, hope this helps.
-
Why does "Illuminati" need a spawn that is 3 meters east, south and above the player?– Orc JMRCommented Oct 27, 2015 at 4:25
-
Because there are 3 sides to a triangle my fellow non illu- I mean player. >:), Commented Oct 27, 2015 at 4:33
-
1But won't ~200 ~200 ~200 give an even bigger and badder, while equally equilateral triangle? :-)– Orc JMRCommented Oct 27, 2015 at 4:38
-
The real question is, where is Doc when you need him, this is heavy... Commented Oct 27, 2015 at 4:39