Jump to content

Recommended Posts

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.

Posted

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)

Posted

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.

Posted

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.

Posted

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

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

Announcements



×
×
  • Create New...

Important Information

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