How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate]

How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate] - From above of similar wavy feathers with delicate texture on pointed sticks and haze effect on black surface in twilight

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]"

How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate] - Interior of stylish living room with comfortable couch placed near shelf with collection of vintage vinyl records and wooden cabinet decorated with classic table lamp
How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate] - Crop unrecognizable female on modern monitor with video game on screen near ethnic partner
How to set player specific spawn points in Minecraft? (PC edition, of course) [duplicate] - Unrecognizable multiracial men playing chess at lumber table



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 Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we will set the world spawn point to a coordinate of (-113, 92, 211): /setworldspawn -113 92 211.




  • How 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