Posted March 1, 20205 yr As mentioned in the title, i'm in the process of updating of updating my mod to 1.15 from 1.14 and most of the blocks and stuff have ported over quite nicely, however, I noticed that all my non-solid blocks such as plants aren't rendering properly, when I evaluate the differences, 1.14 BushBlock has this line of code: public BlockRenderLayer getRenderLayer() { return BlockRenderLayer.CUTOUT; } but 1.15 BushBlock doesn't have anything regarding rendering and such, does anyone know how I can fix this? had a nose around and can't find anything in particular that'll get it to work! Many thanks! Edited March 10, 20205 yr by Zathrox Solved
March 2, 20205 yr Using 20200218-1.15.1 mappings, I have this i my FMLClientSetupEvent: RenderTypeLookup.setRenderLayer(MYBLOCK, RenderType.getCutout()); You may have to inspect the RenderType class to get the correct type, depending on your mappings.
March 2, 20205 yr Author 9 hours ago, Ugdhar said: Using 20200218-1.15.1 mappings, I have this i my FMLClientSetupEvent: RenderTypeLookup.setRenderLayer(MYBLOCK, RenderType.getCutout()); You may have to inspect the RenderType class to get the correct type, depending on your mappings. Do we really need to register each block in the clientsetupevent that we want to be a transparent block? that seems horribly redundant from just adding a simple method to a base class like bush block or something! *edit* but after looking at rendertypelookup, it is indeed how vanilla does it! well I guess that's the new rendering engine for you Edited March 2, 20205 yr by Zathrox
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.