aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2018-03-09 23:16:23 +0000
committerparamat <mat.gregory@virginmedia.com>2018-03-11 23:06:17 +0000
commit7ad6cdd09b55197a25f9af34ad807813eab6247b (patch)
tree08ee5c4a7fe31172eee7459e31ad97c3fb4c656d /doc
parenta09a994417a6971313296aa31ef9090636058822 (diff)
downloadminetest-7ad6cdd09b55197a25f9af34ad807813eab6247b.tar.gz
minetest-7ad6cdd09b55197a25f9af34ad807813eab6247b.tar.bz2
minetest-7ad6cdd09b55197a25f9af34ad807813eab6247b.zip
Biome API: Add 'get_biome_name(biome_id)' API
Change name of default biome to a more suitable lowercase 'default'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 65e1a4eac..9e9356be6 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2959,6 +2959,10 @@ handler.
* `minetest.get_biome_id(biome_name)`
* Returns the biome id, as used in the biomemap Mapgen object and returned
by `minetest.get_biome_data(pos)`, for a given biome_name string.
+* `minetest.get_biome_name(biome_id)`
+ * Returns the biome name string for the provided biome id, or `nil` on
+ failure.
+ * If no biomes have been registered, such as in mgv6, returns `default`.
* `minetest.get_mapgen_params()`
* Deprecated: use `minetest.get_mapgen_setting(name)` instead.
* Returns a table containing: