This article covers rails, ladders, stairs and ‘triggers’ (like buttons and levers) that require more than just their Minecraft Items ID’s to work at full potential.
Rails
0X0 through 0X5 are straight rails, 0X6 through 0X9 are corner pieces. 0X8 serves as a bit flag for powered rails. The bottom three have a range from 0X0 to 0X5.
0?0: flat track going North-South
0?1: flat track going West-East
0?2: track ascending to the East
0?3: track ascending to the West
0?4: track ascending to the North
0?5: track ascending to the South
Regular minecart tracks can make a circle from four rails:
0?6: WestNorth corner (connecting East and South)
0?7: EastNorth corner (connecting West and South)
0?8: EastSouth corner (connecting West and North)
0?9: WestSouth corner (connecting East and North)
Ladders
0?2: Attached to the North side of a block
0?3: South side of a block
0?4: West side
0?5: East side
Stairs
0?0: Ascending East
0?1: Ascending West
0?2: Ascending South
0?3: Ascending North
Levers
0?8: The lever is ‘on’, or ‘thrown’, the lever is providing power.
Wall levers:
0?1: Facing East
0?2: Facing West
0?3: Facing South
0?4: Facing North
Ground levers:
0?5: Lever points South when off.
0?6: Lever points East when off.
Buttons
A button will stay activated for an unknown length of time if you set the bit to 0X8 in a saved level.
Button direction:
0?1: Facing East
0?2: Facing West
0?3: Facing South
0?4: Facing North
Pressure Plates
0?1: If this bit is set, the plate is pressed. Sand Double Slab material
0X0 Stone Slab
0X1 Sandstone Slab
0X2 Wood Slab
0X3 Cobblestone Slab
0X4 Brick Slab
0X5 Stone Brick Slab
0X6 Stone Slab
Redstone Wire
Data values for wires are 0X0 to 0XF, with 0XF being right next to the power source, and 0X0 being non powered from the distance being too great. Direction of the wire is figured at run time and not saved.
Tall Grass
0X0 Dead Shrub (Identical to dead bush but acts like grass)
0X1 Tall Grass
0X2 Fern
Piston
0X8 is the top bit, which serves as a status bit; 1 is pushed out, 0 is pulled in. The direction the piston head is facing is determined by a value of 0 through 5 for the bottom three bits.
0: Down
1: Up
2: North
3: South
4: West
5: East
Piston Extension
Piston bodies have different block types depending on if they are sticky or regular; 1 for sticky, 0 for regular. The top bit 0X8 serves as a status bit to determine this. As usual, the bottom three bits have a value of 0 through 5 to show the direction the piston faces.
0: Down
1: Up
2: North
3: South
4: West
5: East
This should help you mod up some contraptions. Use Minecraft Items ID to reference your modding.
For a Complete Guide, Click On Minecraft Items ID