I have a single-player custom map I'm working on. I want players to initially spawn in the center (or at least near the center; but not close to the edge) of a certain building. I can't seem to get it to do that though. It randomly spawns me in places on top of the building or right next to it, but never even inside of it.
Can anyone help me? If it helps, the co-ords of the spawn point I need to set are X=-339, Y=58, Z=-1763. I'll provide extra information on request, even a screenshot of the building, if necessary.
Just incase you aren't aware. The way (default) spawning works is that it takes the Spawn Location (339, 58, -1763) and finds a suitable location within approx. 20 block radius of that point. It also checks for the highest point and spawns the player there, so if you're trying to spawn them in a room, the player will always spawn on the roof, or the highest block (due to the Spawn Y axis being ignored in the code when spawning).
A usual work around is to have a large floor (popularly floating on the void) that has tripwires around all possible spawn points. When a player spawns, they trip the wire which sends a signal to a Command Block and teleports them to the Map Creators desired Location. Although since this is just a Single Player map, you could just use /spawnpoint, since the Player downloading your map will end up using the same player data as you.
Your best bet would be to use Command Blocks.
Use a redstone clock to set positions and spawnpoints for any player outside the arena.
It just depends on how you want it to work. It's a design preference.
Can anyone help me? If it helps, the co-ords of the spawn point I need to set are X=-339, Y=58, Z=-1763. I'll provide extra information on request, even a screenshot of the building, if necessary.
A usual work around is to have a large floor (popularly floating on the void) that has tripwires around all possible spawn points. When a player spawns, they trip the wire which sends a signal to a Command Block and teleports them to the Map Creators desired Location. Although since this is just a Single Player map, you could just use /spawnpoint, since the Player downloading your map will end up using the same player data as you.
Use a redstone clock to set positions and spawnpoints for any player outside the arena.
It just depends on how you want it to work. It's a design preference.