Posted December 17, 20186 yr I'm trying to add a block with a little transparency - (10% reduction of the texture's alpha). The "isOpaqueCube" and "isTranslucent" methods are deprecated, but I can't find what they're supposed to be replaced by. @Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public boolean isTranslucent(IBlockState state) { return true; } @Override public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; } These deprecated methods "work" (the blocks behind mine render correctly now), except I have a new issue where the faces between two of these blocks double up and create ugly faces. Advice on both problems appreciated. Edited December 17, 20186 yr by viveleroi
December 17, 20186 yr 4 minutes ago, viveleroi said: The "isOpaqueCube" and "isTranslucent" methods are deprecated, but I can't find what they're supposed to be replaced by. The deprecation of methods inside of the Block class (apart from forge-provided ones) mean "Don't call directly but is safe to override". 5 minutes ago, viveleroi said: These deprecated methods "work" (the blocks behind mine render correctly now), except I have a new issue where the faces between two of these blocks double up and create ugly faces. Override Block#shouldSideBeRendered
May 30, 20196 yr im also having the same problem, where would would i paste @Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public boolean isTranslucent(IBlockState state) { return true; } @Override public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; }
May 30, 20196 yr Don't hijack old threads. Make your own, especially since your issue is unrelated to the one OP once had. You put these in your block class of course.
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.