Jump to content

[1.15.2][SOLVED] Updating from 1.14 and all my plants have white boxes in them!


Zathrox

Recommended Posts

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!

2020-03-01_12.25.56.png

2020-03-01_12.26.20.png

Edited by Zathrox
Solved
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by Zathrox
  • Like 1
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.