From b0523adc5f673208b5414cf49c6640e4fc148b87 Mon Sep 17 00:00:00 2001 From: est31 Date: Fri, 2 Oct 2015 23:36:28 +0200 Subject: 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. --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/lua_api.txt') 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 = { -- cgit v1.2.3