1

Help with setworld spawn

Liam44JT 10/25/19 6:31 am
309
10/25/2019 9:35 am
I'm working on a adventure map in 1.14.4 and need the player to spawn on a pressure plate. I tried /setworldspawn but the player always spawns a few blocks away from the desired location. Is there a way to make him spawn on the pressure plate?
Posted by
Liam44JT
Level 13 : Journeyman Architect
3

  Have something to say?

JoinSign in

3

Liam44JT
10/25/2019 7:57 am
Level 13 : Journeyman Architect
history
Thank you so much for the help, everyone! :)
2
HoboMaggot
10/25/2019 7:50 am
Level 55 : Grandmaster Blob
history
/setworldspawn sets the 1st spawn people spawn in (so if you join for the 1st time, you will spawn in the last /setworldspawn location).
If you only want people that have already joined the game before their spawn was set to spawn there, use /spawnpoint instead.
Like:
/execute as @a run spawnpoint x y z

But to answer the main part of your question, the solution you need is /gamerule spawnRadius <radius>
This will limit the radius you can spawn in around the spawnpoint coords
2
Stalkative
10/25/2019 9:35 am
Level 29 : Expert Geek
Slight correction: The world spawn (ie. what you choose with /setworldspawn) is what's used when a player doesn't have their own spawnpoint. Normally their own spawnpoint gets set by sleeping in a bed, but it can also be done with /spawnpoint.

Also, you don't necessarily spawn *at* the world spawn, you spawn anywhere in a certain radius from the world spawn, but if you have your spawnpoint set to a certain block, you do spawn exactly at that block.

So for the problem posted here, either set the world spawn to that block AND spawnRadius to 0, or set each player's spawnpoint to that block. Which one to use depends on the specific case.
3

Welcome