Jump to content

Make a block with a lightlevel >15


Jacky2611

Recommended Posts

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/

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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.