k so im making my mod and my machines im making are running of 1 id, how can i change this method so that , depending on the blocks metadata it will select the right texture heres what i tried which didnt work at all
@SideOnly(Side.CLIENT)
public int getBlockTextureFromSideAndMetadata(int i, int j, World world, int x, int y, int z)
{
int meta = world.getBlockMetadata(x, y, z);
// If no metadata is set, then this is an icon.
if (j == 0 && i == 3) {
return 0 * meta ;
}
if (i == j) {
if (!isActive)
return 0 + 1 * meta - 1;
else
return 1 * meta;
}
switch (i) {
case 0:
return 3 * meta;
case 1:
return 4 * meta;
default:
return 2 * meta;
}
}
Or what other method do i need to use to set the texture, remember it has to work with orientation code too
thanks