Posted February 20, 201312 yr I'm trying to get my metadata blocks to have a different texture on the top and bottom of the block but when I use the "getBlockTextureFromSideAndMetadata" method, it says that the side code is unreachable, anybody know what I'm doing wrong? Block Code http://paste.minecraftforge.net/view/aa57ced5
February 21, 201312 yr Author Ya I don't really understand what I'm doing at all, I'm learning right now working on my second mod and it's going pretty well besides a few things like this here and there, thanks for telling me what the problem is by the way
February 22, 201312 yr Author Adjusted how you said and completely got rid of the switch, the new code works perfect, thanks public int getBlockTextureFromSideAndMetadata(int side, int metadata){ if(side == 0 || side == 1){ return this.blockIndexInTexture + 1 + metadata*2;} else{ return this.blockIndexInTexture + metadata*2; } }
February 22, 201312 yr How do you fuck up a switch , tutorial copycat I suppose "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
February 22, 201312 yr Author I'm new to java that's how, and no, I'm not just copying from a tutorial
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.