Jump to content

Lighting the area around the player


Recommended Posts

One of my friends saw me making mods and asked me to make him a mod which adds a mining helmet to light up the area around him when he's mining. I'm not that experienced with this kind of stuff, i'm assuming it's some stuff in the tick handler, but my early guesses using the "player.worldobj.setLightValue(" method have proved unsuccessful so i was wandering if you lovely people would be able to help.


P.S. i had a look in the dynamic lights src but to me it currently seems like gobbledygook and i cant identify the necessaries parts.

Link to comment
Share on other sites

problem with minecraft light system is, only blocks can emit light. greg's tech has similar think to what you want. it's solved by spawning and removing invisible blocks which emit light, but it can't be done too often or it starts to lag (computing of lighting is quite demanding).

mnn.getNativeLang() != English

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

Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

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