You can get Minecraft items ID for doors, trap doors, fence gates and more on our homepage, but here, you can get additional codes to mod them more specifically. Stone brick and beds are also thrown in this article for good measure.
The corners that hinges are positioned on a door are the least two significant bits on the item.
Here are the bit codes.
0×0: Northwest corner
0×1: Northeast corner
0×2: Southeast corner
0×3: Southwest corner
The two bits below are flags:
0×8: This is the top half of the door if set to this big, otherwise, it’s the lower half.
0×4: The door will swing counter clockwise around the hinge if set to this.
For example, the bottom half of a door with its hinge on the Southwest 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.
Whether or not the door is opened or closed is determined by 0×4 . It has a simple binary counterpart, 0 is closed flush with the ground and 1 is open against its connecting wall. The remaining two bits describe which wall the trapdoor is attached to:
0×0: Attached to the South wall
0×1: Attached to the North wall
0×2: Attached to the East wall
0×3: Attached to the West wall
0×4 is a bit flag, again with a simple binary open or closed; 1 is open¸ 0 is closed. The remaining two bits determine in which direction the gate will open.
0: To the South
1: To the West
2: To the North
3: To the East
Wall Signs, Furnaces, Dispensers, Chests
0×2: Facing North
0×3: Facing South
0×4: Facing West
0×5: Facing East
Air Portal Frame
The bottom two bits determine which “side” of the whole portal frame this block is a part of.
0×4 is a bit flag: 0 is an “empty” frame block, 1 is a block with an Eye of Ender inserted.
Use beds to make sleepy times! Use them as a respawn point after death.
0×0: Head is pointing South
0×1: Head is pointing West
0×2: Head is pointing North
You can match up these codes with Minecraft items ID on our homepage so that you can mod it up! Enjoy.