Posted June 14, 20169 yr I am trying to make a laser block... it is semi-transparent, and doesn't fill in the 1 block bounding box. Somehow the block is being shaded, even though i set the opacity. This is how it looks: Here's my code: protected TileLaser(Material material) { super(material); float fac = (0.9F)/2; this.setBlockBounds(0.0F, fac, fac, 1.0F, 1-fac, 1-fac); this.setLightLevel(0.5F); this.setLightOpacity(0); this.setCreativeTab(CreativeTabs.tabRedstone); this.useNeighborBrightness = true; } @Override public boolean isOpaqueCube() { return false; } @Override public int getRenderBlockPass(){ return 1; } thanks in advance from germany
June 14, 20169 yr Author i would also appreciate, if someone knew how not to render the back face of the laser, but the back faces of other blocks
June 15, 20169 yr Maybe add those two methods to your Block class. @Override public boolean isOpaqueCube() { return false; } @Override public boolean isNormalCube() { return false; }
June 16, 20169 yr Author thanks very much! i managed to figure it out before you answered, but didnt have time to respond, but thanks anyway!
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.