Navigation Menu

Skip to content

Commit

Permalink
Cross-reference the node level manipulation functions (#10633)
Browse files Browse the repository at this point in the history
This can help developers find the correct functions to access and manipulate the fluid level.
  • Loading branch information
Oblomov committed Dec 4, 2020
1 parent e73c5d4 commit 08c9d1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/lua_api.txt
Expand Up @@ -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"
Expand Down

0 comments on commit 08c9d1a

Please sign in to comment.