1

Help with setworld spawn

Liam44JT's Avatar Liam44JT10/25/19 6:31 am
1 emeralds 167 3
10/25/2019 9:35 am
Stalkative's Avatar Stalkative
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's Avatar
Liam44JT
Level 12 : Journeyman Architect
3

Create an account or sign in to comment.

3

2
10/25/2019 7:57 amhistory
Level 12 : Journeyman Architect
Liam44JT
Liam44JT's Avatar
Thank you so much for the help, everyone! :)
2
10/25/2019 7:50 amhistory
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
/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
3
10/25/2019 9:35 am
Level 29 : Expert Geek
Stalkative
Stalkative's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome