Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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

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.

  • 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 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.