1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Lua API: Add function to deregister single biomes (#5445)

This commit is contained in:
zeuner 2017-08-27 16:39:47 +00:00 committed by SmallJoker
parent e09c7fceaa
commit 1f207a3ddb
2 changed files with 19 additions and 0 deletions

View file

@ -715,6 +715,10 @@ the global `minetest.registered_*` tables.
* added to `minetest.registered_biome` with the key of `biome.name`
* if `biome.name` is nil, the key is the returned ID
* `minetest.unregister_biome(name)`
* Unregisters the biome name from engine, and deletes the entry with key
* `name` from `minetest.registered_biome`
* `minetest.register_ore(ore definition)`
* returns an integer uniquely identifying the registered ore
* added to `minetest.registered_ores` with the key of `ore.name`