The Meaning of Life, the Universe, and Everything.
Location:
Hyderabad
Join Date:
6/21/2016
Posts:
55
Member Details
Hello guys! I am presenting you the idea of ECLIPSES IN MINECRAFT!
On a new moon day, there is about 1/10 chance of the moon appearing during day time. (1 in 10 means 1 out of every 80 days, as the game has 8 moon phases). When it appears, there is 4/5 chance of an eclipse. During an eclipse day, a random integer number is chosen from 1 to 24000 (i.e the number of ticks in a day). After those many ticks from start of the day, the moon begins to cover the sun. Whether it is partial or total depends on your location.
So, a random integer is chosen, which is between (Your location in z-axis)+10,000 and (Your location in Z axis)-10,000. This will be the center of the eclipse, where total eclipse/annular eclipse happens.
A random float number from 6.500000 and 9.499999 is chosen and the moon will be that many pixels long. (Sun is always 8 pixels long). The moon will occupy the maximum of the sun at the centre location (i.e if the size of moon is 7.2, then 90% is the maximum while if it is 8.8, 110% is the maximum). The moon moves down 1 pixel per 1024 blocks, that is, you cant see the eclipse if the center is more than 8,192 blocks from you. (If you are 2000 blocks from the centre of eclipse, the moon is 2 pixels under the sun, so the maximum the moon covers the sun would be 6/8 or 75%.)
The eclipse can last from 1000 ticks to 10,000 ticks, chosen randomly by the computer.
During an eclipse, depending on how much the sun is covered, the light level decreases:
0% - Light level 15
1-10%- L. 14
11-20%- 13
21-30%- 12
31-40%- 11
41-50%- 10
51-60%- 9
61-70%- 8
71-80%- 7 (Mobs can spawn)
81-85%- 6
86-90%- 5
91-92.5%- 4
92.5-95% - 3 (Mobs drop their heads when the light is this low during an eclipse)
The idea is okay but you made it a little bit convoluted imo. I would remove the eclipse center thing and the randomized moon size and just make it affect the entire game world equally and have it slowly drop to 0 light level and then return to normal over the course of... Like 5 or 6 minutes, with about 2 minutes of near total darkness.
That would be more fair for Multiplayer since players can easily be more than 10k blocks away from each other and it makes it easier to run for the game since it is a much less complex to calculate the lighting if it is a global effect.
Rollback Post to RevisionRollBack
Want some advice on how to thrive in the Suggestions section? Check this handy list of guidelines and tips for posting your ideas and responding to the ideas of others!
All the way down to 0 light level? So total pitch blackness*? In real life there is still more light than you get during the night:
*Light levels in the vanilla game are broken; a light level of 0 should be completely dark even with "brightness" set to max (the setting is misnamed; it changes the gamma, or the light curve between 0 and 1 from nonlinear (Moody) to linear (Bright), but since the minimum is nonzero it also changes and even Moody does not make it totally dark):
(note that mushrooms have a light level of 1, described as "barely visible" by the Wiki, it is easier to see in full-screen)
Instead of the moon just appearing in the daytime sky by chance, wouldn't it make more sense if the moon just moved non-relative to the rest of the sky?
Rollback Post to RevisionRollBack
My avatar is a texture from a small block game I made in Python. It's not very good and it probably won't work if you install it.
I'm very alone in my Minecraft worlds as I don't have a very good internet connection to run a server. If you're like me, you might be interested in my Posse mod suggestion.
Instead of the moon just appearing in the daytime sky by chance, wouldn't it make more sense if the moon just moved non-relative to the rest of the sky?
Possibly, but putting them on two separate cycles and making eclipses possible but rare and making the light level change based on the sun and moon overlapping is a heck of a lot harder than a simple function and random number generator.
Rollback Post to RevisionRollBack
Want some advice on how to thrive in the Suggestions section? Check this handy list of guidelines and tips for posting your ideas and responding to the ideas of others!
Is this for console and pe AND could computer too?
This forum encompasses the PC. Anyway, I don't think there needs to be that much complexity just for an eclipse sprite.
Rollback Post to RevisionRollBack
Yeah, that guy in the avatar is me. I'm *that* strange. It happens. Sometimes people act like that. Just go with it. I can offer help with suggestions even before you post them - NOT make your suggestions - but help you with them.
Possibly, but putting them on two separate cycles and making eclipses possible but rare and making the light level change based on the sun and moon overlapping is a heck of a lot harder than a simple function and random number generator.
It wouldn't really be that hard...
If the moon and sun both have angles relative to the horizon, you could compare those angles. Subtract the angles, and abstract the difference. (Abstract = Make negative numbers into positive ones for those who haven't gotten to that level in math.) If the difference is lower than a certain value that means the sun and moon are overlapping, lower the light level. (Technically, lower the amount of visible light that a skylight of 15 gives. The actual skylight level of 15 never goes up or down except when actual blocks are hiding you from the sun. If they did update the skylight constantly, there would be significant lag.)
Simple enough, and with a few changes to the rendering code for the sky, it sounds completely possible.
Rollback Post to RevisionRollBack
My avatar is a texture from a small block game I made in Python. It's not very good and it probably won't work if you install it.
I'm very alone in my Minecraft worlds as I don't have a very good internet connection to run a server. If you're like me, you might be interested in my Posse mod suggestion.
Possibly, but putting them on two separate cycles and making eclipses possible but rare and making the light level change based on the sun and moon overlapping is a heck of a lot harder than a simple function and random number generator.
Harder sure, but the trickiest part is coming up with the math equations, but you only ever need to do that once. The rest is just letting a computer calculate things.
The sun can remain the same, it would dictate day and night. The moon would be on a separate orbital rail with a slightly faster speed and have the rail 'wobble' very, very slowly should probably simulate enough changes for possible but rare eclipses. This would double the number of calculations for positions of celestial objects in minecraft (since the moon would no longer automatically be 180 degrees opposite the sun).
Sun and moon positions are functions of time within a day/night. Moon rail wobble angle a function of days within a Minecraft "year" (or just time on a larger scale). Because it's on a larger scale it only needs to be updated once per in game day thus minimal calculation overhead.
The dimming level for the eclipse can be calculated on the sun and moon's positions when their distance is less than the radius of their sprites. A simple vector calculation with no obstacles. I don't know how mob pathfinding works but seeing as zombies can navigate mazes I'm guessing the algorithm involved is a lot more complicated than a simple distance calculation between two moving objects.
If eclipses are worth adding to the game, they're worth being added in right. I'd prefer some consistency in how the moon is moving overhead even if I rarely pay attention to it.
Hello guys! I am presenting you the idea of ECLIPSES IN MINECRAFT!
On a new moon day, there is about 1/10 chance of the moon appearing during day time. (1 in 10 means 1 out of every 80 days, as the game has 8 moon phases). When it appears, there is 4/5 chance of an eclipse. During an eclipse day, a random integer number is chosen from 1 to 24000 (i.e the number of ticks in a day). After those many ticks from start of the day, the moon begins to cover the sun. Whether it is partial or total depends on your location.
So, a random integer is chosen, which is between (Your location in z-axis)+10,000 and (Your location in Z axis)-10,000. This will be the center of the eclipse, where total eclipse/annular eclipse happens.
A random float number from 6.500000 and 9.499999 is chosen and the moon will be that many pixels long. (Sun is always 8 pixels long). The moon will occupy the maximum of the sun at the centre location (i.e if the size of moon is 7.2, then 90% is the maximum while if it is 8.8, 110% is the maximum). The moon moves down 1 pixel per 1024 blocks, that is, you cant see the eclipse if the center is more than 8,192 blocks from you. (If you are 2000 blocks from the centre of eclipse, the moon is 2 pixels under the sun, so the maximum the moon covers the sun would be 6/8 or 75%.)
The eclipse can last from 1000 ticks to 10,000 ticks, chosen randomly by the computer.
During an eclipse, depending on how much the sun is covered, the light level decreases:
0% - Light level 15
1-10%- L. 14
11-20%- 13
21-30%- 12
31-40%- 11
41-50%- 10
51-60%- 9
61-70%- 8
71-80%- 7 (Mobs can spawn)
81-85%- 6
86-90%- 5
91-92.5%- 4
92.5-95% - 3 (Mobs drop their heads when the light is this low during an eclipse)
95-97.5%- 2
97.5-99.9% - 1
100% - 0
Lunar Eclipses
WIP
Check out my suggestions!
Improved mine carts speed: http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2847927-improvement-in-minecart-speed
The idea is okay but you made it a little bit convoluted imo. I would remove the eclipse center thing and the randomized moon size and just make it affect the entire game world equally and have it slowly drop to 0 light level and then return to normal over the course of... Like 5 or 6 minutes, with about 2 minutes of near total darkness.
That would be more fair for Multiplayer since players can easily be more than 10k blocks away from each other and it makes it easier to run for the game since it is a much less complex to calculate the lighting if it is a global effect.
Want some advice on how to thrive in the Suggestions section? Check this handy list of guidelines and tips for posting your ideas and responding to the ideas of others!
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2775557-guidelines-for-the-suggestions-forum
Is this for console and pe AND could computer too?
All the way down to 0 light level? So total pitch blackness*? In real life there is still more light than you get during the night:
*Light levels in the vanilla game are broken; a light level of 0 should be completely dark even with "brightness" set to max (the setting is misnamed; it changes the gamma, or the light curve between 0 and 1 from nonlinear (Moody) to linear (Bright), but since the minimum is nonzero it also changes and even Moody does not make it totally dark):
(note that mushrooms have a light level of 1, described as "barely visible" by the Wiki, it is easier to see in full-screen)
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Instead of the moon just appearing in the daytime sky by chance, wouldn't it make more sense if the moon just moved non-relative to the rest of the sky?
My avatar is a texture from a small block game I made in Python. It's not very good and it probably won't work if you install it.
I'm very alone in my Minecraft worlds as I don't have a very good internet connection to run a server. If you're like me, you might be interested in my Posse mod suggestion.
Possibly, but putting them on two separate cycles and making eclipses possible but rare and making the light level change based on the sun and moon overlapping is a heck of a lot harder than a simple function and random number generator.
Want some advice on how to thrive in the Suggestions section? Check this handy list of guidelines and tips for posting your ideas and responding to the ideas of others!
http://www.minecraftforum.net/forums/minecraft-discussion/suggestions/2775557-guidelines-for-the-suggestions-forum
This forum encompasses the PC. Anyway, I don't think there needs to be that much complexity just for an eclipse sprite.
Yeah, that guy in the avatar is me. I'm *that* strange. It happens. Sometimes people act like that. Just go with it. I can offer help with suggestions even before you post them - NOT make your suggestions - but help you with them.
Unofficial Suggestions Guide (2.0) - by Theriasis
Unofficial Critics Guide - by yoshi9048
It wouldn't really be that hard...
If the moon and sun both have angles relative to the horizon, you could compare those angles. Subtract the angles, and abstract the difference. (Abstract = Make negative numbers into positive ones for those who haven't gotten to that level in math.) If the difference is lower than a certain value that means the sun and moon are overlapping, lower the light level. (Technically, lower the amount of visible light that a skylight of 15 gives. The actual skylight level of 15 never goes up or down except when actual blocks are hiding you from the sun. If they did update the skylight constantly, there would be significant lag.)
Simple enough, and with a few changes to the rendering code for the sky, it sounds completely possible.
My avatar is a texture from a small block game I made in Python. It's not very good and it probably won't work if you install it.
I'm very alone in my Minecraft worlds as I don't have a very good internet connection to run a server. If you're like me, you might be interested in my Posse mod suggestion.
Harder sure, but the trickiest part is coming up with the math equations, but you only ever need to do that once. The rest is just letting a computer calculate things.
The sun can remain the same, it would dictate day and night. The moon would be on a separate orbital rail with a slightly faster speed and have the rail 'wobble' very, very slowly should probably simulate enough changes for possible but rare eclipses. This would double the number of calculations for positions of celestial objects in minecraft (since the moon would no longer automatically be 180 degrees opposite the sun).
Sun and moon positions are functions of time within a day/night. Moon rail wobble angle a function of days within a Minecraft "year" (or just time on a larger scale). Because it's on a larger scale it only needs to be updated once per in game day thus minimal calculation overhead.
The dimming level for the eclipse can be calculated on the sun and moon's positions when their distance is less than the radius of their sprites. A simple vector calculation with no obstacles. I don't know how mob pathfinding works but seeing as zombies can navigate mazes I'm guessing the algorithm involved is a lot more complicated than a simple distance calculation between two moving objects.
If eclipses are worth adding to the game, they're worth being added in right. I'd prefer some consistency in how the moon is moving overhead even if I rarely pay attention to it.
i think the Eclipse idea is Great!
another one for the mod you could add eclipse stages to becuase it takes along time for a eclipse to get on minecraft
I Love The Tornado Mod & Orespawn Mod