Skip to content

Commit

Permalink
Update Lua API docs for new leveled node options
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 authored and appgurueu committed Mar 5, 2024
1 parent 624612b commit 6490b09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1310,17 +1310,20 @@ The function of `param2` is determined by `paramtype2` in node definition.
* 4dir modulo 4 = rotation
* Otherwise, behavior is identical to facedir
* `paramtype2 = "leveled"`
* Only valid for "nodebox" with 'type = "leveled"', and "plantlike_rooted".
* Leveled nodebox:
* Only valid for the drawtypes `nodebox`, `plantlike` and `plantlike_rooted`
* Nodebox:
* Nodebox `type` must be set to `"leveled"`
* The level of the top face of the nodebox is stored in `param2`.
* The other faces are defined by 'fixed = {}' like 'type = "fixed"'
nodeboxes.
* The nodebox height is (`param2` / 64) nodes.
* The maximum accepted value of `param2` is 127.
* Boxes in '`leveled_fixed = {}`' will never change.
* Rooted plantlike:
* Plantlike:
* The height of the 'plantlike' section is stored in `param2`.
* The height is (`param2` / 16) nodes.
* Rooted plantlike:
* Same as plantlike
* `paramtype2 = "degrotate"`
* Valid for `plantlike` and `mesh` drawtypes. The rotation of the node is
stored in `param2`.
Expand Down

0 comments on commit 6490b09

Please sign in to comment.