Skip to content

Commit 3f89bf4

Browse files
committedMay 10, 2016
Lua_api.txt: Fix documentation for facedir rotation
1 parent 53e9587 commit 3f89bf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎doc/lua_api.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ node definition:
554554
^ The rotation of the node is stored in param2. Furnaces and chests are
555555
rotated this way. Can be made by using minetest.dir_to_facedir().
556556
Values range 0 - 23
557-
facedir modulo 4 = axisdir
557+
facedir / 4 = axis direction:
558558
0 = y+ 1 = z+ 2 = z- 3 = x+ 4 = x- 5 = y-
559-
facedir's two less significant bits are rotation around the axis
559+
facedir modulo 4 = rotation around that axis
560560
paramtype2 == "leveled"
561561
paramtype2 == "degrotate"
562562
^ The rotation of this node is stored in param2. Plants are rotated this way.

0 commit comments

Comments
 (0)