1
0
Fork 0
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:
Jude Melton-Houghton 2022-12-03 10:40:46 -05:00 committed by GitHub
parent e84d259ec7
commit b3ffc4b327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 103 additions and 17 deletions

View file

@ -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: