Jump to content

Recommended Posts

Posted

Hi everyone,

 

I'd like to change the lighting of my mod, so that it would be completely dark during nights and in unlit places. The same effect this Mod brings: http://www.curse.com/mc-mods/minecraft/225957-hardcore-darkness

 

I've taken a look at the source code of this mod, but I can't seem to understand what is going on. I do understand I would need to change the minimum light level for every Block to total darkness.

Anyone have an idea how I can start doing this?

 

Any help is appreciated,

kind regards, Krikke

Posted

Hi, this was a very interesting read. However, I still have no idea how to change this [0,0] entry. Where do I find it? How do I edit it or make sure it overrides the original minecraft entry?

 

(I'm very new to modding but learning pretty fast)

 

Cheers, Krikke

Posted

Hi

 

I think you will probably need to use ASM+Reflection to overwrite parts of the vanilla code in EntityRenderer.updateLightMap().  That's pretty tricky to get right, but the change itself will be very simple.  There are a few tutorials around on how to use ASM+Reflection.

 

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

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