The resulting lighting is far from desirable as there is plenty of bleed around the corners, and shadows cast by surface parts and I don’t even know what:
I have tried generating blocks in each of the corners as well, which did provide more consistent lighting, although there is still bleed around the top layer. I would like to avoid as much additional ore generation as possible:
last i remembered, caves usually don’t have any light emitting from within. why not have the player equip a lantern/torch, if not place them? unless you have some specific reasoning in mind for why the caves would be oddly illuminated as such?
in any case:
simply turn off all ambient lighting, set colors to black, clocktime to 0, brightness to 0, and there shouldn’t be any leaking. play around with environmentdiffuse as well (probably turn off).
I’m with these comments. You don’t need the sun if you’re gonna be underground, just turn off the lighting.
But also I would add a light object and attach it to the character so then a person can actually maneuver somewhat. Then you can add torches people can place with bigger lighting ranges.