Briefly explain how facedir rotations work (#11934)

This commit is contained in:
Aritz Erkiaga 2022-09-25 13:45:02 +02:00 committed by GitHub
parent 1317cd12d7
commit 5ced5c9b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1085,7 +1085,10 @@ The function of `param2` is determined by `paramtype2` in node definition.
* Values range 0 - 23
* facedir / 4 = axis direction:
0 = y+, 1 = z+, 2 = z-, 3 = x+, 4 = x-, 5 = y-
* facedir modulo 4 = rotation around that axis
* The node is rotated 90 degrees around the X or Z axis so that its top face
points in the desired direction. For the y- direction, it's rotated 180
degrees around the Z axis.
* facedir modulo 4 = left-handed rotation around the specified axis, in 90° steps.
* By default, on placement the param2 is automatically set to the
horizondal direction the player was looking at (values 0-3)
* Special case: If the node is a connected nodebox, the nodebox