Add spawn chunk location to system_info
Kaedenn opened this issue ยท 2 comments
I do not see a way to query the spawn chunks in scarpet. I propose adding that information to system_info
, seeing that other mutable values (eg. game_difficulty
) are already present.
Examples:
// Location of the spawn chunk, in chunk coordinates:
l(cx, cz) = system_info():'spawn_chunk';
// Location of the spawn chunk, in world coordinates:
l(wx, wz) = map(system_info():'spawn_chunk', 16*_);