mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Spawn level: Add 'get_spawn_level(x, z)' API
Returns a suitable player spawn y co-ordinate for unmodified terrain.
This commit is contained in:
parent
473d81f2e2
commit
644d0ab2bb
3 changed files with 34 additions and 0 deletions
|
@ -44,6 +44,9 @@ private:
|
|||
// returns the requested object used during map generation
|
||||
static int l_get_mapgen_object(lua_State *L);
|
||||
|
||||
// get_spawn_level(x = num, z = num)
|
||||
static int l_get_spawn_level(lua_State *L);
|
||||
|
||||
// get_mapgen_params()
|
||||
// returns the currently active map generation parameter set
|
||||
static int l_get_mapgen_params(lua_State *L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue