Jump to content

Recommended Posts

Posted

Trying to set my spawn point (game version 1.20.4).  Current coordinates are (-75, 124, -83).   When I issue:

/serverconfig setspawn -75 -83

The server responds with "Invalid coordinates - beyond world bounds", which is obviously false.   I tried again with the y coordinate included:

/serverconfig setspawn -75 124 -83

and got the same result: "Invalid coordinates - beyond world bounds".  So went to Google and discovered the setspawnwhere command, so I gave that a whirl:

/serverconfig setspawnwhere

and the results were:

Quote

Default spawnpoint now set to =511924 =113 =511917

which looks a little like integer overflow to me as well as garbled (I assume there's a missing "x", "y", and "z" in that message).  At least, the x and z look like integer overflow.

 

What in the world is going on?

 

Also, I think the help is messed up too because the response to /help serverconfig setspawn is:

image.png.8bbe161151735995edec249a7fb5000d.png

 

I assume that middle number should be the height y, not a repeated z coordinate.

 

Posted

it's likely the game wants absolute coordinates, which is different from minimap/HUD coordinates. minimap coordinates should be based off the world's spawnpoint (you should of noticed them changing to 0,0 after running setspawnhere), while absolute coordinates never change. if you open the debug screen ingame you can see "position:" on the right side which gives absolute coordinates.

Posted
On 3/9/2025 at 4:22 AM, wasa said:

it's likely the game wants absolute coordinates, which is different from minimap/HUD coordinates. minimap coordinates should be based off the world's spawnpoint (you should of noticed them changing to 0,0 after running setspawnhere), while absolute coordinates never change. if you open the debug screen ingame you can see "position:" on the right side which gives absolute coordinates.

I'll play around with this.  It's weird I've never really had issues before.  I wonder if the game somehow got confused between absolute and relative coordinates.

Posted

I recommend just using the "/serverconfig setspawnhere" command while standing where you want the default world spawn to be.  Unless you know the absolute coordinates, the larger numbers, which aren't easy to find.  Once spawn is set at the absolute coordinates all the visible coordinates in the game interface are reset to that block being 0,0.  The absolute coordinates can never be negative from what I've seen.  They run from 0 to max world size (1M), which makes sense from the programing viewpoint.  It's really just a translation to make it easier on the player.  Spawn to a player is always 0,0 and being able to have negative numbers related to that makes it easy to find your way back or know your relative position to spawn.

  • Like 2
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.