Minecraft wiki entry for Pre-flattening, associated text: For example, the bottom half of a door with its hinge on the south-west corner, which is swung so that it is closed when viewed from the west, will have a data value of (3 | 4) = (3 + 4) = 7.