How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate]
More specifically:
I don't want everyone spawning at the same place, I want it to not need to know who's playing (so "spawnpoint playername x y z" won't do it).
I guess I'm thinking that when people log into the game
it senses this person logged in first, they are player1, the second to log on is player2, etc.
Thus it would spawn people in respective spawn points:
spawnpoint player1 -100 10 -100
spawnpoint player2 100 10 100
spawnpoint player3 100 10 -100
spawnpoint player4 -100 10 100
The map i'm making should spawn each player in separate places, while part of the goal is to meet in the middle.
Also, if it matters, the game is for 4 people only, no more no less.
Players can't leave spawn points until each has signaled he/she is ready. so somehow I need to set up a ready count of 4 to let the game begin.
Best Answer
Setup a central Lobby where all players will spawn as usual (/setworldspawn
)- they will be all in one room.
This room will need to have 4 pressure plates (best to be separate so every player will be alone on it and others will not be near him). You then need to connect redstone from those plates so it will do AND
gate - if all 4 plates will be triggered, the redstone signal will go toward commandblocks (HINT: Use inverted redstone torches -> another torch). Then you need 4x2 commandblocks with the teleport/spawnpoin commands:
/spawnpoint @p[x=X,y=Y,z=Z,r=2] -100 10 -100
/tp @p[x=X,y=Y,z=Z,r=2 -100 10 -100
Where X,Y,Z are coords of the pressure plate. Be sure /spawnpoint
executes BEFORE /tp
. You will need those two commands for each player, so total of 8 commands.
Pictures about "How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate]"
Can you set multiple spawn points?
You can build in whatever logic you like to set different spawnpoints randomly, or in a series.How do I use Setworldspawn?
How to Enter the CommandHow To Make Custom Spawn Points 1.17 Minecraft Map Making Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Evie Shaffer, Charlotte May, cottonbro, William Fortunato