Talk:Daylight cycle

How is the sun-set and sun-rise times/light-levels measured?
I ran a test in Minecraft 1.15.1 using the following commands to measure time and light level:



Basically reading the light value using a loot_table with a predicate testing each light level. It would read the current light level at my position and store it in the $LIGHT light score. Then it is tested against $GLOBAL light score, if it has changed, indicate the change using a tellraw command. Then set the $GLOBAL light score to that of $LIGHT.

This all runs in a single tick, so the daytime that is queried, should be the exact tick that the light level changed. Also, the loot table light level is LIGHT = max(sky-darkening, block). This means it takes the sky-light level and subtracts the darkening of the sky (sunset), if there is no blocklight nearby, this would accurately measure light level changes.

However my results as shown below, differ from those on the wiki page, this lead me to believe those measurements might be calculated, based on game code or otherwise, however my measurements are from experiments in the latest version. Another reason why the wiki has different results might be biome or version related? They did a light engine rewrite so that could be it.

My question, are my results accurate and should I update the wiki. Or is my measurement method not correct?

My Results:

--AgentM –Preceding unsigned comment was added by 85.148.222.43 (talk) at 19:44, 9 January 2020 (UTC). Please sign your posts with

The sun gets larger during sunset?
This is said on the Sunset page. After some experimenting in Java, the Sun during both sunset and noon is the same exact size. In Bedrock Edition, the Sun gets larger when you look at it, but when looking away it again happens to be the same size. Am I missing something here? Mushroom378 (talk) 20:07, 2 March 2020 (UTC)

If I'll be honest, it's probably something about you. Maybe skybox? But think about it-- It probably doesn't do that, 'cuz let's face it: Who would take the time to code this? Nonetheless, the community might be missing something. But maybe they aren't. Pacomatic (talk) 14:24, 29 April 2021 (UTC)