Zurich Antiock said:
Strebler said:
Heh, I typed in min and let the spellchecker choose a word, didn't even re-read my sentence, once music blocks are out I will make that a new mod, have all the creepers do a dance and blow up if the right sequence of notes are played.
LOL. Nice. I'd love to see that.
If you had time to make that, though... Its certain you'd have plenty of time to make an extremely bare-bones basic program to change world environment colors, right???
Strebler... here's my question... What did you do to make this mod? What program did you use to tell minecraft to set all the default environment settings to -1? Was it java? And if so, does the mod set up the Minecraft app's defaults with these instructions... or the beta level.dat files themselves?
I know that you can simply change these settings on a classic level using the NBT Forge program. (
viewtopic.php?f=25&t=6382)
So why can't you do the same thing for a alpha/beta level?
Prepare for a wall of text!
I looked through the code and looked for areas where moon.png/sun.png/cloud.png were called, I knew that there would have to be a way to calculate where those were placed. Near to the moon/sun code I found an openGL drawlist call, which had the list for how the stars are drawn. (stars are randomly scattered rectangles of various sizes of which I could change, along with number of stars or even the pattern of how the stars are drawn)
Anyway, I found a few other functions that also had a call to the function that determined how the position is determined (position is a calculation based on the time of the world 0 being sunrise 6000 being noon, and so on, I replaced this with code that found out the hour of the clock and multiplied it by 1000 and added minutes in the hour to it, this change in code became the realtime mod). Mucking around with the other formulas gave me lighter/darker clouds, fog, and most of the sky. Changing the value to -1 gave both the fog and the clouds a dark black, setting it to 0 gave an odd blue/gray color to the fog and a light gray cloud (of early morning). Changing it to an even smaller number made fog thicker, and no big change to the clouds. The horizon is drawn using a drawlist call that smooths out the transition from horizon to sky, I simply deleted those drawlist calls. After that I was left with a constant color that was left on the horizon. I realized that this must be the glClearColor that is set so I looked for that function call and set it to be black.
None of these things were really that hard for me to do and only took me an hour or two of looking around the code to find. Since this was just changing a few lines of code and not an actual program on my part it was very easy and not time consuming on my end. If I were to make a program that allows all of this without modding the code directly I wouldn't even know where to begin.
I could probably find out where the functions I changed got called at, look through that code to determine where the final color call for the sky/fog is at and modify it there, and create some way to change it when you go to the options menu, but that would take me a lot of time to do and I hate making interfaces because that is a lot of effort since the only thing I wanted was a black sky to start with.
As a side note, if you change clouds.png by drawing pictures on it and set your render to fast that will change your sky.