diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-12-03 10:40:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 10:40:46 -0500 |
commit | b3ffc4b327622bec63793476191b95bc174bf33c (patch) | |
tree | f528352d914b5aacb8b4d8b31f2e702efe18d0dc /doc/lua_api.txt | |
parent | e84d259ec7fcc00466bd947070cb4ed77cd83c52 (diff) | |
download | minetest-b3ffc4b327622bec63793476191b95bc174bf33c.tar.xz |
Add `minetest.get_mapgen_edges` (#12999)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b58c75d11..e9a95c9e7 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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: |