mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.get_mapgen_edges
(#12999)
This commit is contained in:
parent
e84d259ec7
commit
b3ffc4b327
6 changed files with 103 additions and 17 deletions
|
@ -5628,6 +5628,13 @@ Environment access
|
|||
prefix `"no"` is attached, clears instead.
|
||||
* `flags` is in the same format and has the same options as `mg_flags` in
|
||||
`minetest.conf`.
|
||||
* `minetest.get_mapgen_edges([mapgen_limit[, chunksize]])`
|
||||
* Returns the minimum and maximum possible generated node positions
|
||||
in that order.
|
||||
* `mapgen_limit` is an optional number. If it is absent, its value is that
|
||||
of the *active* mapgen setting `"mapgen_limit"`.
|
||||
* `chunksize` is an optional number. If it is absent, its value is that
|
||||
of the *active* mapgen setting `"chunksize"`.
|
||||
* `minetest.get_mapgen_setting(name)`
|
||||
* Gets the *active* mapgen setting (or nil if none exists) in string
|
||||
format with the following order of precedence:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue