public void registerIcon(IconRegister par1IconRegister){
if(isSwitched){
this.itemIcon = par1IconRegister.registerIcon("shadowRapier2");
} else {
this.itemIcon = par1IconRegister.registerIcon("shadowRapier1");
}
}
You're doing this wrong.
You need to register BOTH icons at the same time as the registerIcon function is called ONCE.
Could be. I found #16 to get the link. Could remember #17, wasn't sure if I'd made an 18th or not. It's all so fuzzy when I have to repeat myself so much.
Your issue is not the same. The issue in this thread is combining two textures for a SPECIFIC CUSTOM BLOCK. Your issue is drawing on overlay on ALL BLOCKS.
Should do, but if they want it to sort of have a mixed texture... look up the randomite mod he mentioned and look at how that texture blends into the stone background. That has to use alphas to work. It is a little bit more complex, but not too bad.
Above method does allow alpha. I'm using it.
Image from a thread where I was having an issue, but you can clearly see that I have an overlay on top of stone bricks that is alpha'd.
Eh. All you really need is something like this:
renderer.renderStandardBlock(Block.stone, x, y, z); //render normal stone
renderer.renderBlockUsingTexture(Block.stone, x, y, z, block.getIcon(0, 0)); //render the overlay
You can, you just have to approach it differently.
You are going to need an event hook to listen for players joining the server, then save data into the player that way.