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.

Featured Replies

Posted

I have a custom rendered tile entity and I have a lighting bug. The tile entity flickers from light to dark as a walk around it. I have tried to make the tile entity not opaque and I have tried to disable lighting after the push matix and enable it after the pop matix, in the rendering code, but the bug still refuses to be debugged! Does anyone have any suggestions?

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Have you overriden the following method and set the light opacity to 0?

@Override
public boolean renderAsNormalBlock() {
return false;
}

 

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

  • Author

I have overridden the method, but won't setting the light opacity to 0, let light pass through it and act like glass, except it is not transparent?

Don't be afraid to ask question when modding, there are no stupid question! Unless you don't know java then all your questions are stupid!

Hi

 

Rendering lighting is made up of several components and I suspect you haven't disabled them all.

 

Perhaps try

    GL11.glPushAttrib(GL11.GL_ENABLE_BIT);

  disableStandardItemLighting();

    GL11.glColor4f(1.0, 1.0, 1.0, 1.0);

 

  { do your render here}

 

    GL11.glPopAttrib();

 

That worked for me...

 

-TGG

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.