Minecraft Coding Pack: Stair block texture
Posted
by
JamerTheProgrammer
on Game Development
See other posts from Game Development
or by JamerTheProgrammer
Published on 2012-10-25T11:17:34Z
Indexed on
2012/10/25
23:17 UTC
Read the original article
Hit count: 203
I have MCP setup and working nicely. I would like to make another stair block. I have copied the wooden stair block file and then pasted it and renamed it BlahStairBlock
. I'm trying to set a texture for the stair block but it wont work.
public int getBlockTextureFromSide(int side)
{
if(i==side)
{
// Workshop top
return 43;
}
return blockIndexInTexture;
}
This is what I'm using to set the texture.... It just isn't working. Any ideas of why?
© Game Development or respective owner