Posted June 21, 201411 yr 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!
June 21, 201411 yr 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/
June 21, 201411 yr Hi Some info about lighting here http://greyminecraftcoder.blogspot.com.au/2013/08/lighting.html -TGG
June 21, 201411 yr Author 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!
June 21, 201411 yr 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/
June 21, 201411 yr 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
June 21, 201411 yr Like this perhaps? http://www.minecraftforge.net/forum/index.php/topic,13154.msg68940.html#msg68940
June 21, 201411 yr Author Mainly i want to make a circular light. Than want to make it a bit more orangeis.
June 22, 201411 yr 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
June 23, 201411 yr Good places to start are RenderBlocks.renderStandardBlock RenderHelper for item lighting OpenGlHelper EntityRenderer.enableLightMap and EntityRenderer.renderWorld -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.