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

Hello guys. I messed up a little. Can someone give me a hint, how to make a custom-textured block, like XyCraft or Thaumcraft blocks? Not necessarily animated one, but with custom lighting (like XyCraft ores), e.g. - a machine block with red light, glowing in the dark.

I don't know how to change the colored glow, although I do suggest doing something along the lines of using vanilla minecraft's code for crops, where it detects the sunlight level, and then saying if the light level is X, then use forge's .setLightValue .  Then, if the light level is greater than X, .setLightValue(0F)

if I were you I'd pay attention to the red stone ore (and its rendering, or enderman's eyes), it should have all features you want :).

 

EDIT: then probably implement your custom block renderer using ISimpleBlockRenderingHandler.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

  • Author

I thought redstone ore just have some .setLightValue, nothing more... Enderman eyes is a good example, yes.

 

Will look look through ISimpleBlockRenderingHandler by the way.

oh, you're right about the redstone ore, sorry. looking at the enderman rendering, the glowing texture is rendered in a second pass (don't forget to use setRenderPassModel).

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

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.