From 7ad6cdd09b55197a25f9af34ad807813eab6247b Mon Sep 17 00:00:00 2001 From: paramat Date: Fri, 9 Mar 2018 23:16:23 +0000 Subject: Biome API: Add 'get_biome_name(biome_id)' API Change name of default biome to a more suitable lowercase 'default'. --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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: -- cgit v1.2.3