Posted February 17, 201411 yr Guess the title says everything. I want to have a sunlight generator with a range of around 80 blocks. Is something like this possible? And where can i find the sun/sky class? Here could be your advertisement!
February 17, 201411 yr But you can do something else, somewhat like the Thaumcraft Arcane Lamp. That lamp places invisible block that act like air blocks, but they emit light. 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/
February 17, 201411 yr Author But you can do something else, somewhat like the Thaumcraft Arcane Lamp. That lamp places invisible block that act like air blocks, but they emit light. Sounds like a good idea. Isn't it possible to make something like the sky/sun does? what i basically want to create is a sun-block... Here could be your advertisement!
February 17, 201411 yr Sun light doesnt exceed 15. It just all cells with direct view of the sky get this 15 value if i recsll correctly. If this is what you want you could find where in the lighting code this happens you can maybe make your block count as the sky. Pretty sure will need to be a core mod todo that.
February 17, 201411 yr Author The problem is that i can't find the sky... Here could be your advertisement!
February 18, 201411 yr Is this 1.7 lightlevel can be any float it seems in 1.7 That function exists in 1.6 as well. It's just another way to specify 0-15. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 18, 201411 yr The problem is that i can't find the sky... A very quick look in my IDE showed my World.computeLightValue, which when computing for sky lighting immediately checks canBlockSeeTheSky... So if you actually want your block to behave like sky (so essentially light an infinite distance downwards through air) id mod that function to call a custom canBlockSeeTheSky type function that also returns true if when searching upwards it finds your block.
February 18, 201411 yr canBlockSeeTheSky just does a loop check looking for not-air blocks* until it hits the world ceiling. If it finds one, it returns false. If it doesn't, it returns true. *Pretty sure it doesn't do fancy things like looking for entirely transparent blocks. Been a while since I looked at it. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 19, 201411 yr Hi This link might be of interest to you http://greyminecraftcoder.blogspot.com.au/2013/08/lighting.html -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.