So I want to give a block a separate texture from the terrain.png and I'm not using modloader. This would be fine and all but at this time (the next few weeks) I'm on someone elses computer and I can't download JDK or MCP, therefore I can not compile and run. I was wondering if this would work because it does look a bit iffy to me. Can anyone tell me, or check and see if this would run valid? Here's the code:
Block.java texture assignment:
protected Block(int i, int j, int t, Material material)
{
this(i, material);
loadTexture("/item/creeperRods.png") = t;
blockIndexInTexture = j;
}
Block.java block establishment:
creeperEgg = (new BlockCreeperEgg(530, (), t, Material.stone)).setHardness(0.0F).setLightValue(0.0F).setStepSound(soundStoneFootstep).setBlockName("creeperegg");
Block.java texture assignment:
Block.java block establishment: