diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-07-15 19:19:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 21:19:59 +0200 |
commit | f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db (patch) | |
tree | bff947ef11780c27de4304b7a05be1de71be3d89 /doc | |
parent | 68143ed8eca81857d3d28c2c4059411d72a78e8e (diff) | |
download | minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.tar.gz minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.tar.bz2 minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.zip |
Add wallmounted support for plantlike and plantlike_rooted nodes (#11379)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ad11d7235..3c96d0b36 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1022,7 +1022,8 @@ The function of `param2` is determined by `paramtype2` in node definition. 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" + * Supported drawtypes: "torchlike", "signlike", "plantlike", + "plantlike_rooted", "normal", "nodebox", "mesh" * The rotation of the node is stored in `param2` * You can make this value by using `minetest.dir_to_wallmounted()` * Values range 0 - 5 @@ -1198,7 +1199,12 @@ Look for examples in `games/devtest` or `games/minetest_game`. * `plantlike_rooted` * Enables underwater `plantlike` without air bubbles around the nodes. * Consists of a base cube at the co-ordinates of the node plus a - `plantlike` extension above with a height of `param2 / 16` nodes. + `plantlike` extension above + * If `paramtype2="leveled", the `plantlike` extension has a height + of `param2 / 16` nodes, otherwise it's the height of 1 node + * If `paramtype2="wallmounted"`, the `plantlike` extension + will be at one of the corresponding 6 sides of the base cube. + Also, the base cube rotates like a `normal` cube would * The `plantlike` extension visually passes through any nodes above the base cube without affecting them. * The base cube texture tiles are defined as normal, the `plantlike` |