
Node is the name for each and every cube in the world.
Some of them use parameter facedir (as chests, furnaces, stairs etc). Such nodes can be rotated using the screwdriver.
First try of using it (left click) will popup message that you can use different modes. You can switch them with holding shift and leftclick.
Current mode of screwdriver is shown with number (1-4) on its image.
Just try the modes to see how they work exactly.
Facedir, now called 6d facedir (6 directional) is a way to describe node's orientation in 3D world.
It consist of 2 parts called axisdir and rotation.
Axisdir tells which axis top of the node (like top of the chest) is pointing at.
Rotation tells how the node is rotated around that axis.
Value of facedir is calculated:
facedir = axisdir * 4 + rotation
There are 6 possible directions for axisdir and 4 possible rotations, so values are in range 0 - 23,
Desired axisdir rotations range / facedir values:
rotate around y+ / 0 - 3
rotate around z+ / 4 - 7
rotate around z- / 8 - 11
rotate around x+ / 12 - 15
rotate around x- / 16 - 19
rotate around y- / 20 - 23
Please do note, that common nodes like dirt, stone etc dont use facedir parameter and thus cannot be rotated at all.