aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-10-02 23:36:28 +0200
committerest31 <MTest31@outlook.com>2015-10-04 23:59:41 +0200
commitb0523adc5f673208b5414cf49c6640e4fc148b87 (patch)
tree3e6b152a4d16b2a892e829f51cdfb436c8b6d374 /doc/lua_api.txt
parent5130dbce7b294c392733e93c05e2099786523342 (diff)
downloadhax-minetest-server-b0523adc5f673208b5414cf49c6640e4fc148b87.tar.gz
hax-minetest-server-b0523adc5f673208b5414cf49c6640e4fc148b87.zip
Add new ContentParamType2 "CPT2_DEGROTATE"
This might break some mods, but it is important for all uses of the param2 to be documented. This doesn't need a serialisation version or network protocol version change, as old clients will still work on new servers, and it is bearable to have new clients getting non rotated plants on old servers.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 446b51959..926282976 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -538,6 +538,10 @@ node definition:
0 = y+ 1 = z+ 2 = z- 3 = x+ 4 = x- 5 = y-
facedir's two less significant bits are rotation around the axis
paramtype2 == "leveled"
+ paramtype2 == "degrotate"
+ ^ The rotation of this node is stored in param2. Plants are rotated this way.
+ Values range 0 - 179. The value stored in param2 is multiplied by two to
+ get the actual rotation of the node.
collision_box = {
type = "fixed",
fixed = {