I'm sure this could be done with ease using zones that are spawned around every light object based on its radius; the hardcoded light limit in blockland makes this kind of okay, and light coming from the sun would be done through raycasts fired at every player from the sun location