Ok.
public IBlockState getStateFromMeta(int meta)
{
int lvl = meta>>2;
int face = meta & 0b11;
EnumFacing enumfacing = EnumFacing.getFront(face);
if (enumfacing.getAxis() == EnumFacing.Axis.Y)
{
enumfacing = EnumFacing.NORTH;
}
return this.getDefaultState().withProperty(LEVEL, Integer.valueOf(lvl)).withProperty(FACING, enumfacing);
}
This works for NORTH and SOUTH but not for the EAST and WEST
This is my problem now
(note that directional block is working, this is after reloading the world)