Posted June 2, 20187 yr Hello, I was creating a variant of the slime block in my mod and my code and files looks like this Forge Version : Latest/1.12.2-14.23.4.2703 Block code : https://pastebin.com/gcw1rJ7F (Block Material is Clay) Blockstate : { "variants": { "normal":{"model":"slimemod:bloody_slime_block"} } } Model : https://pastebin.com/6Cw7u8Zj Texture in attachment. And when im placing the block on my world this happen : http://prntscr.com/jq2no1 http://prntscr.com/jq2nu9 In all directions of the block (Top, Bottom, N, S,E,W) it shows air. It want to show the texture of the block behind but find nothing to show maybe ? Thank you for reading and have a nice day/night (Sorry if my english sucks :c ). Edited June 3, 20187 yr by Riss_Crew
June 2, 20187 yr Your pastbin links aren't working so I can't see your code. But you should make sure you have the following method in your block class: @Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; } Check out my tutorials here: http://jabelarminecraft.blogspot.com/
June 3, 20187 yr Author Hi @jabelar thank you for your reply. I've updated the links they works correctly now. I've tried to override the @SideOnly but it change nothing
June 3, 20187 yr Look into BlockBreakable class (BlockSlime extends it)... you have to override isOpaqueCube to not see the air
June 3, 20187 yr Author @Terrails Thanks you a lot ! I added this to my ClientSide @Override public boolean isOpaqueCube(IBlockState state) { return false; } And now it works correctly
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.