mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Biome API: Add 'get_biome_name(biome_id)' API
Change name of default biome to a more suitable lowercase 'default'.
This commit is contained in:
parent
a09a994417
commit
7ad6cdd09b
4 changed files with 29 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue