Skip to content

Commit 08c9d1a

Browse files
authoredDec 4, 2020
Cross-reference the node level manipulation functions (#10633)
This can help developers find the correct functions to access and manipulate the fluid level.
1 parent e73c5d4 commit 08c9d1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎doc/lua_api.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,9 @@ The function of `param2` is determined by `paramtype2` in node definition.
10141014
* `paramtype2 = "flowingliquid"`
10151015
* Used by `drawtype = "flowingliquid"` and `liquidtype = "flowing"`
10161016
* The liquid level and a flag of the liquid are stored in `param2`
1017-
* Bits 0-2: Liquid level (0-7). The higher, the more liquid is in this node
1017+
* Bits 0-2: Liquid level (0-7). The higher, the more liquid is in this node;
1018+
see `minetest.get_node_level`, `minetest.set_node_level` and `minetest.add_node_level`
1019+
to access/manipulate the content of this field
10181020
* Bit 3: If set, liquid is flowing downwards (no graphical effect)
10191021
* `paramtype2 = "wallmounted"`
10201022
* Supported drawtypes: "torchlike", "signlike", "normal", "nodebox", "mesh"

0 commit comments

Comments
 (0)
Please sign in to comment.