Jump to content

The Fjong^

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by The Fjong^

  1. 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]
  2. How can i make a "Overlay" to a block with the normal ... @SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister) { this.Overlay = par1IconRegister.registerIcon("FjonGCraft:AnimatedBlocks/test"); this.iconArray = par1IconRegister.registerIcon("FjonGCraft:AnimatedBlockOverlay/" + getBlockOverlay); } What the block look like What the Block Should look like U can see i have tried, but the only thing i can see ingame is the "block overlay", the blockbackground i missing... but i cant find the problem... Please leave an answer... ... -Regards TheFjonG^ <3
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.