diff options
author | Oblomov <giuseppe.bilotta@gmail.com> | 2020-12-04 20:16:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 20:16:53 +0100 |
commit | 08c9d1a66963eb2ecbca2681a0d473d4103e3f1e (patch) | |
tree | cad955fc21bbb0d902caf2da25d4e8dfe7382055 | |
parent | e73c5d45858b35dde782b23677495c6eda3f8253 (diff) | |
download | minetest-08c9d1a66963eb2ecbca2681a0d473d4103e3f1e.tar.gz minetest-08c9d1a66963eb2ecbca2681a0d473d4103e3f1e.tar.bz2 minetest-08c9d1a66963eb2ecbca2681a0d473d4103e3f1e.zip |
Cross-reference the node level manipulation functions (#10633)
This can help developers find the correct functions to access and manipulate the fluid level.
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 27f871618..25a2b8f60 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1014,7 +1014,9 @@ The function of `param2` is determined by `paramtype2` in node definition. * `paramtype2 = "flowingliquid"` * Used by `drawtype = "flowingliquid"` and `liquidtype = "flowing"` * The liquid level and a flag of the liquid are stored in `param2` - * Bits 0-2: Liquid level (0-7). The higher, the more liquid is in this node + * Bits 0-2: Liquid level (0-7). The higher, the more liquid is in this node; + see `minetest.get_node_level`, `minetest.set_node_level` and `minetest.add_node_level` + to access/manipulate the content of this field * Bit 3: If set, liquid is flowing downwards (no graphical effect) * `paramtype2 = "wallmounted"` * Supported drawtypes: "torchlike", "signlike", "normal", "nodebox", "mesh" |