about 2 years
ago -
Shurenai
-
Direct link
Most likely, It's determined the same way the game determines if it should darken your screen lightwise- Which is to say conditions like "Is there a roof? Are you more than a block inside anything detectable as an entry point? Are all the walls closed up?"
Alternatively it might work the way crops determine if they can/should grow- Is there a path to sunlight within X blocks; If yes, outside, if no, inside. If it used something like this, unlike plants, it would probably consider transparent blocks as enclosed space.
Alternatively it might work the way crops determine if they can/should grow- Is there a path to sunlight within X blocks; If yes, outside, if no, inside. If it used something like this, unlike plants, it would probably consider transparent blocks as enclosed space.