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 implemented a custom liquid and it is working.

Now, I want to make it glow like a spider's eye (I know it's not really shining, it's rendered ignoring shadows). I want to make the whole block shine, not just a part like the eyes of a spider.

Here is my code. Apply ManaModel to my liquid block with ClientHanlder.onModelBake. ManaModel is an IBakedModel and I believe it can be rendered by overriding getQuads and setting the quads to the maximum light.

But it doesn't work. Is it because ManaModel.putLightVertex is not passing the correct value? Or is it not possible to apply the light in the first place? Model is complicated, please help someone.

  • Author

I was expecting to get a FluidModel with ModelBakeEvent, but apparently this isn't being used. It is the LiquidBlockRenderer class that actually renders the liquid. By rewriting the getLightColor method of this class, my goal was achieved. However, since I'm using a mixin, if anyone has an idea that can do the same within the forge, I'd appreciate it if you could tell me for other modders who saw this as well.

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.