Jump to content

[1.7.2]Custom lightsource


FLUFFY2

Recommended Posts

Hello everyone,

I want to modify or create a new light source in the game, but i cant figure out where is minecraft lighting system written. I mean where can i find the .class for it?

I figured out light is not a block in this game its something else.

Thank you for helping!

Link to comment
Share on other sites

You mean like a new torch? Use this in the block constructor:

this.setLightLevel(1);

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

I know how to add light value to a block.

I want to modify the existing light in the game(shape, colour, ect...).

The info is good GreyGhost, but its not what i need.

I want to know where should i look around in the minecraft source.

If its created with OpenGL where is the OpenGl class that creates the actual light?

Thanks!

Link to comment
Share on other sites

That's tricky because you need to to change the whole lighting engine with ASM to do that.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

I know how to add light value to a block.

I want to modify the existing light in the game(shape, colour, ect...).

The info is good GreyGhost, but its not what i need.

I want to know where should i look around in the minecraft source.

If its created with OpenGL where is the OpenGl class that creates the actual light?

Thanks!

Do you mean you want to create a light source which illuminates the surrounding blocks with (say) red light instead of the yellow light from a torch?

 

Or do you mean you want a torch which looks red, but still lights up the surrounding blocks with yellow light?

 

-TGG

 

 

Link to comment
Share on other sites

Hi

 

Changing the lighting model in Minecraft will be very difficult, because it does not work like you think it does.  See the link(s) I posted earlier.

You can change the colour of the block light in the light map to make it more orange, that will affect every torch and glowstone in the game.  And even that is rather difficult.

 

I would suggest to forget about it and try something easier :)

 

-TGG

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.

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.