I come so far:
[embed=425,349]package com.thefjong.tf.core;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.util.Icon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ISidedAnimatedTextureBlock extends Block{
public static String getBlockOverlay;
Icon icons[];
public ISidedAnimatedTextureBlock(int par1, Material par2Material, String GetOverlay ){
super(par1, par2Material);
GetOverlay = getBlockOverlay;
icons = new Icon[2];
}
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister)
{
icons[0] = par1IconRegister.registerIcon("FjonGCraft:AnimatedBlocks/test");
icons[1] = par1IconRegister.registerIcon("FjonGCraft:AnimatedBlockOverlay/" + getBlockOverlay);
}
public int getRenderBlockPass()
{
return icons.length;
}
public boolean canRenderInPass(int pass)
{
return pass == this.getRenderBlockPass();
}
}
[/embed]