]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Cross-reference the node level manipulation functions (#10633)
authorOblomov <giuseppe.bilotta@gmail.com>
Fri, 4 Dec 2020 19:16:53 +0000 (20:16 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 19:16:53 +0000 (20:16 +0100)
This can help developers find the correct functions to access and manipulate the fluid level.

doc/lua_api.txt

index 27f8716183fa269d433d0a472a19daa29b242e0c..25a2b8f60776817fa650fa85f0ddb1760cc6eb80 100644 (file)
@@ -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"