summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2016-10-06 23:03:55 +0100
committerparamat <mat.gregory@virginmedia.com>2016-10-08 00:09:01 +0100
commit0264e38bff12a3c6b81231ac1f6cd281179df744 (patch)
tree46d6196699ed41727c1eb4dceef43210ace21bf9 /doc/lua_api.txt
parentd4a2e23793d2260f263396480b6552a37c8ebf6b (diff)
downloadminetest-0264e38bff12a3c6b81231ac1f6cd281179df744.tar.gz
minetest-0264e38bff12a3c6b81231ac1f6cd281179df744.tar.bz2
minetest-0264e38bff12a3c6b81231ac1f6cd281179df744.zip
Lua_api.txt: Add biome and nodeupdate documentation
Add missing documentation for 'register_biome' and 'clear_registered_biomes'. Add documentation for 'nodeupdate_single'. 'nodeupdate' is not yet documented due to a bug it causes.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index c82027148..74469e535 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1935,13 +1935,14 @@ Call these functions only at load time!
* Warning! The type field ("shaped","cooking" or any other) will be ignored if the recipe
contains output. Erasing is then done independently from the crafting method.
* `minetest.register_ore(ore definition)`
+* `minetest.register_biome(biome definition)`
* `minetest.register_decoration(decoration definition)`
* `minetest.override_item(name, redefinition)`
* Overrides fields of an item registered with register_node/tool/craftitem.
* Note: Item must already be defined, (opt)depend on the mod defining it.
* Example: `minetest.override_item("default:mese", {light_source=LIGHT_MAX})`
-
* `minetest.clear_registered_ores()`
+* `minetest.clear_registered_biomes()`
* `minetest.clear_registered_decorations()`
### Global callback registration functions
@@ -2270,6 +2271,11 @@ and `minetest.auth_reload` call the authetification handler.
* increase level of leveled node by level, default `level` equals `1`
* if `totallevel > maxlevel`, returns rest (`total-max`)
* can be negative for decreasing
+* `nodeupdate_single(pos)`
+ * causes an unsupported `group:falling_node` node to fall and causes an
+ unattached `group:attached_node` node to fall.
+ * does not spread these updates to neighbours
+ * a helper function, not officially part of the API, but useful
### Inventory
`minetest.get_inventory(location)`: returns an `InvRef`