Posted April 13, 201312 yr So i wanted to make a multi orientational block so i took a look at the log block from vanilla public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) { int j1 = par9 & 3; byte b0 = 0; switch (par5) { case 0: case 1: b0 = 0; break; case 2: case 3: b0 = 8; break; case 4: case 5: b0 = 4; } return j1 | b0; } public Icon getBlockTextureFromSideAndMetadata(int par1, int par2) { int k = par2 & 12; int l = par2 & 3; return k == 0 && (par1 == 1 || par1 == 0) ? this.top: (k == 4 && (par1 == 5 || par1 == 4) ? this.top : (k == 8 && (par1 == 2 || par1 == 3) ? this.top: this.bottom)); } note that top and bottom are icon registers so the problem im having here is that the top shows up at the front AND back the thing i want it to do is just the front to be top so.... any ideas ? thx
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.