My problem is that when I rotate my block with my "wrench"-type item I've made it's sides texture come in the wrong order. This code doesn't work:
@Override
public int getBlockTextureFromSideAndMetadata(int side, int metadata) {
int i = (metadata + side) % 6;
return blockIndexInTexture + i;
}
, as I want the front and the back at the opposite sides. I want to have 1 texture for the front, the back and the sides each.
Thanks in advance.
EDIT: The block can be rotated in all 6 directions, not just 4.