Here is some information I learned from decompiling the 1.8 minecraft jar and looking at the vg class (aka BiomeGenBase). Hope it helps!
Each type of biome has an id number. There can be a maximum of 256 unique types of biomes. It appears that it is now very easy for mods to add new kinds of biomes.
Each type of biome now has its own world generation coding.
Enderman spawn about 3.85% of the time in each biome (excluding Nether and Sky).
List of Biomes
<0> Ocean - Animals do not spawn in this biome, but monsters and squids still do.
<1> Plains
<2> Desert - Does not rain in this biome; Animals do not spawn in this biome, but monsters and squids still do.
<3> Extreme Hills
<4> Forest - Wolves can spawn in this biome (spawn chance: 11.11%)
<5> Taiga - Has Pine trees; Wolves can spawn in this biome (spawn chance: 16.66%)
<6> Swampland - Vines generate on trees in this biome
<7> River - Animals do not spawn in this biome, but monsters and squids still do.
<8> Nether - Used for Nether; Only ZombiePigman and Ghasts spawn here
<9> Sky - Unused; Only chickens spawn here
Well, that's all the information I've deciphered so far. Each biome has settings that apparently control height and other stuff. I'll update this post if I decipher more information.
Howd u make this mod? I didn't see a download link for mcp for 1.8 pre
I decompiled the minecraft.jar and modified the obfuscated code.
I have now released version 1.2 of the Fog Key mod! I recoded the mod, so now it no longer modifies the yq(Timer) class. It now only modifies the oz(BiomeOcean) class. The slow motion problem should now be gone!
Great job! But I have a problem... After I installed this mod/.class file, something happened to my Minecraft movement. It slowed down everything, but it is not technically lag. For example, regular jumping is like every Minecraft jump before that. After installing this to 1.8 pre-release, whenever I jumped, it was in slow-motion and seemed as if I were gliding down, but I still had fall damage. Also, moving without sprinting is like in slow-motion too. That includes all other mobs moving in slo-mo....Does anyone else have this problem? Mods installed are for 1.8 Pre, TooManyItems and Fog-Key.
I've noticed when using the mod time in game appears to slow down. It's easy to see when in 3rd person as your guys legs barely move. It appears most commonly on tiny, I don't know what else to say.
But seriously it goes slo mo for one of the render distances (i thhink normal)
Ya, this is exact problem I was referring to in the first post's NOTE. I made the Timer class do 25 ticks per second instead of 20 to solve the slow motion problem for my computer. However, that clearly doesn't work for everyone. If I increase the tick rate too much, its like the game is in hyper speed for my computer. Due to the way the fog key is currently implemented, there is no way for me to fix this problem. However, I have an idea for an alternate implementation that involves the use of Java Threads. I'll see if it works.
Anyway, I have released version 1.1 of the fog key mod (fixes chat problem and adds shift-F reverse fog). I increased the tick rate again slightly, but I am not positive this will fix the slow motion problem that some people are having. I will try to have version 1.2 use a different implementation that doesn't affect the game speed.
bug I found on multiplayer. When you type on the chat and press f in your word it changes the fog.
Wow, I can't believe I forgot about multiplayer chat. Thanks for mentioning it. I'll get that fixed tomorrow (and add the shift-f combo to reverse fog level).
For those people having crashes and not getting crash reports, check the beginning of this topic for instructions on how to run minecraft in the command line (which will give a crash report when crashes occur). I can only guess the problem until I get a crash report.
Wait... When I installed this, I ran Minecraft 1.8 Pre and...
It was stuck on the Mojang beginning screen. Then it crashed.
Edit: I managed to get on the Title Screen, and my Minecraft just freezes. Attempting to restart computer...
Edit 2: Alright, I restarted my computer and everything is fine. No crashes... Until I go to Options --> Video Settings and try to change something....
Get squishing!
Oh btw, It only crashes if you try to change it in your Title Screen.
The Options --> Video Settings crash bug may have been existing previously in 1.8 Pre. As for the other crashes, can you provide any crash reports? The mod hasn't caused me any crashes when I've been using it.
Making general mods(for minecraft) is easy, if you use the tools provided by the community (ie Minecraft Forge, modloader, modloaderMP) - this mod however, was rediculously easy. copy/paste/test/fix/upload/post/link/done
If I had not had any problems decompiling the 1.8 jar, I would have done exactly what you said and this mod would have been done in less than 5 minutes. However, because of decompiling problems, I had to find a decompiled class that wasn't messed up (which took some time), and adapt the copied code to be utilized for that specific class. While not challenging, it was still time-consuming.
Kinda pointless considering the pre-release is basically a open beta, meaning that it is an unfinished product so for all you know that it will work when it comes out.
And for those saying "It isn't that easy" .. It really is that easy to make a simple mod like this.
Yes, this mod was pretty easy to make (though it took more time than I expected due to decompiling problems). I primarily made this mod for my own use. Hopefully, the official 1.8 will add back the fog button and render this mod useless.
The new update to the 1.8 Pre-Release (version 2) restores the fog key! Download the Pre-Release version 2 update to get the fog key back! Only use this mod if you still use Pre-Release version 1 for some reason.
Since Minecraft 1.8 pre-release 1 does not have the easily accessible fog key, I decided to make this mod. This mod allows you to use the fog key once again!
Since Minecraft 1.8 (and higher) uses a 2 button combination for the fog key (F3 & F, which is tricky for some laptop users), I made this mod. This mod allows you to use only a single fog key once again!
Here's an (1.4 only) demonstration video provided by GHOS7EH
Here is an (1.4 only) installation video provided by tag JTGammerr
Here is an (1.4 only) MAC installation video provided by Blockhappy
By default, the fog key is 'F' and it cannot currently be changed.
New to version 1.1
-Holding either shift key while pressing F will change the fog in the reverse direction.
-The F key will no longer change fog when you are using a gui (such as the chat window).
New to version 1.2
-Mod recoded to not slow game down (No longer modifies Timer class; Now modifies OceanBiome class).
New to Version 1.3
-Mod recoded to use ModLoader. It no longer modifies existing class files and is easily installed and uninstalled.
New to Version 1.4
-Mod updated for Beta 1.9 Pre-Release, and recoded to not use ModLoader. Now modifies the BiomeGenSky class file.
New to Version 1.5
-Mod recoded to once again use ModLoader. It no longer modifies existing class files and is easily installed and uninstalled.
1.0.0 Version (1.5):
Here's the download link Fog Key Mod 1.5 for Minecraft 1.0.0 full release only.
1.9 Pre-Release 5 Version:
Here's the download link Fog Key Mod 1.4 for Beta 1.9 Pre-Release 5 (NOT for 1.9 Pre 4 or lower)
1.9 Pre-Release 4 Version:
Here's the download link Fog Key Mod 1.4 for Beta 1.9 Pre-Release 4 (NOT for 1.9 Pre 3 or lower)
1.9 Pre-Release 3 Version:
Here's the download link Fog Key Mod 1.4 for Beta 1.9 Pre-Release 3 (NOT for 1.9 Pre 2 or lower)
1.9 Pre-Release 2 Version:
Here's the download link Fog Key Mod 1.4 for Beta 1.9 Pre-Release 2 (NOT for 1.9 Pre 1 or lower)
1.9 Pre-Release 1 Version:
Here's the download link Fog Key Mod 1.4 for Beta 1.9 Pre-Release 1 (NOT for 1.81 or lower)
1.81 Version:
Here's the download link (ModLoader 1.81 required) Fog Key Mod 1.3 for Beta 1.81 (NOT for 1.73 or a 1.8 Pre-Release)
NOTE: Apparently version 1.3 of this mod conflicts with zombe's modpack. I looked into my mod's coding, and my mod does not even access any of the classes that zombe's modpack modifies. Could someone check if other ModLoader 1.81 mods conflict with zombe's modpack?
Old downloads Fog Key Mod 1.2 for Beta 1.8 Pre-Release 1 (NOT for 1.73) Fog Key Mod 1.1 for Beta 1.8 Pre-Release 1 (NOT for 1.73) Fog Key Mod 1.0 for Beta 1.8 Pre-Release 1 (NOT for 1.73)
NOTE: Due to some problems decompiling 1.8 pre, I used the yq(Timer) class to detect when the f key is being pushed. However, because this class is used for timing game play ticks, this mod seems to have a weird effect on how fast the game play is. I am still trying to find out how I can do an alternate implementation.
NOTE: Slow motion problem fixed, but you will have to unistall version 1.1 or 1.0 if either is installed. Use the "Disable" class file provided with both those downloads.
The real 1.8 should be out Monday. You should just wait.
I won't be doing any serious modding until the real 1.8 is out (though, I am a bit doubtful about 1.8 being released on Monday, considering how many bugs are in the pre-release). However, since I really would like the fog toggle key back while playing the 1.8 pre-release, I will probably attempt to mod that back in (which apparently only involves adding 3 lines back to the client/minecraft.class).
Hey guys, I have been looking through the obfuscated source code for the 1.8 pre-release, and I am considering making some really small mods for it. Here are my current ideas for very small and easy mods I might make:
-Mod that restores the fog toggle key
-Mod that disables Endermen
-Mod that makes Silverfish naturally spawn somewhere.
If you guys have any other ideas for relatively simple mods, feel free to mention them.
i see no message at all and i didnt modify the txt file in anyway.
So when you enter a world, you don't see a message that says "Scripted Survivor Mod: ....", yet single player commands allows you to spawn them? Ok, that's really weird. What happens exactly when you try to spawn them with SPC? What other mods do you have installed?
The only possibility I can think of right now is that you didn't put all the class files into your minecraft.jar. Did you try reinstalling the mod?
A bug with signs. After game reloading builders ignore already placed signs "construction zone" and "private property". I have to replace them or touch their text (with sign edit mod).
It sounds like I'll have to fix the signs. Thanks for letting me know.
0
No problem!
I updated the first post with a slight detail I missed. Animals don't spawn in deserts either.
4
Each type of biome has an id number. There can be a maximum of 256 unique types of biomes. It appears that it is now very easy for mods to add new kinds of biomes.
Each type of biome now has its own world generation coding.
Enderman spawn about 3.85% of the time in each biome (excluding Nether and Sky).
List of Biomes
<0> Ocean - Animals do not spawn in this biome, but monsters and squids still do.
<1> Plains
<2> Desert - Does not rain in this biome; Animals do not spawn in this biome, but monsters and squids still do.
<3> Extreme Hills
<4> Forest - Wolves can spawn in this biome (spawn chance: 11.11%)
<5> Taiga - Has Pine trees; Wolves can spawn in this biome (spawn chance: 16.66%)
<6> Swampland - Vines generate on trees in this biome
<7> River - Animals do not spawn in this biome, but monsters and squids still do.
<8> Nether - Used for Nether; Only ZombiePigman and Ghasts spawn here
<9> Sky - Unused; Only chickens spawn here
Well, that's all the information I've deciphered so far. Each biome has settings that apparently control height and other stuff. I'll update this post if I decipher more information.
0
I decompiled the minecraft.jar and modified the obfuscated code.
I have now released version 1.2 of the Fog Key mod! I recoded the mod, so now it no longer modifies the yq(Timer) class. It now only modifies the oz(BiomeOcean) class. The slow motion problem should now be gone!
0
Ya, this is exact problem I was referring to in the first post's NOTE. I made the Timer class do 25 ticks per second instead of 20 to solve the slow motion problem for my computer. However, that clearly doesn't work for everyone. If I increase the tick rate too much, its like the game is in hyper speed for my computer. Due to the way the fog key is currently implemented, there is no way for me to fix this problem. However, I have an idea for an alternate implementation that involves the use of Java Threads. I'll see if it works.
Anyway, I have released version 1.1 of the fog key mod (fixes chat problem and adds shift-F reverse fog). I increased the tick rate again slightly, but I am not positive this will fix the slow motion problem that some people are having. I will try to have version 1.2 use a different implementation that doesn't affect the game speed.
0
Wow, I can't believe I forgot about multiplayer chat. Thanks for mentioning it. I'll get that fixed tomorrow (and add the shift-f combo to reverse fog level).
For those people having crashes and not getting crash reports, check the beginning of this topic for instructions on how to run minecraft in the command line (which will give a crash report when crashes occur). I can only guess the problem until I get a crash report.
0
While I can't say for sure, I think it should work in SMP.
0
The Options --> Video Settings crash bug may have been existing previously in 1.8 Pre. As for the other crashes, can you provide any crash reports? The mod hasn't caused me any crashes when I've been using it.
If I had not had any problems decompiling the 1.8 jar, I would have done exactly what you said and this mod would have been done in less than 5 minutes. However, because of decompiling problems, I had to find a decompiled class that wasn't messed up (which took some time), and adapt the copied code to be utilized for that specific class. While not challenging, it was still time-consuming.
0
Yes, this mod was pretty easy to make (though it took more time than I expected due to decompiling problems). I primarily made this mod for my own use. Hopefully, the official 1.8 will add back the fog button and render this mod useless.
0
Are you using the 1.8 pre-release's minecraft.jar file? Can you provide a crash report?
Thanks alot! I have added it to the first post.
0
Could you provide a crash report?
Anyway, I'm glad everyone likes the mod. Does anyone notice the game play being slightly slower or faster?
45
The new update to the 1.8 Pre-Release (version 2) restores the fog key! Download the Pre-Release version 2 update to get the fog key back! Only use this mod if you still use Pre-Release version 1 for some reason.
Since Minecraft 1.8 pre-release 1 does not have the easily accessible fog key, I decided to make this mod. This mod allows you to use the fog key once again!
Since Minecraft 1.8 (and higher) uses a 2 button combination for the fog key (F3 & F, which is tricky for some laptop users), I made this mod. This mod allows you to use only a single fog key once again!
Here's an (1.4 only) demonstration video provided by GHOS7EH
Here is an (1.4 only) installation video provided by tag JTGammerr
Here is an (1.4 only) MAC installation video provided by Blockhappy
By default, the fog key is 'F' and it cannot currently be changed.
New to version 1.1
-Holding either shift key while pressing F will change the fog in the reverse direction.
-The F key will no longer change fog when you are using a gui (such as the chat window).
New to version 1.2
-Mod recoded to not slow game down (No longer modifies Timer class; Now modifies OceanBiome class).
New to Version 1.3
-Mod recoded to use ModLoader. It no longer modifies existing class files and is easily installed and uninstalled.
New to Version 1.4
-Mod updated for Beta 1.9 Pre-Release, and recoded to not use ModLoader. Now modifies the BiomeGenSky class file.
New to Version 1.5
-Mod recoded to once again use ModLoader. It no longer modifies existing class files and is easily installed and uninstalled.
1.0.0 Version (1.5):
Here's the download link
Fog Key Mod 1.5 for Minecraft 1.0.0 full release only.
Fog Key Mod 1.4 for Minecraft 1.0.0 full release only.1.9 Pre-Release 5 Version:
Here's the download link
Fog Key Mod 1.4 for Beta 1.9 Pre-Release 5 (NOT for 1.9 Pre 4 or lower)
1.9 Pre-Release 4 Version:
Here's the download link
Fog Key Mod 1.4 for Beta 1.9 Pre-Release 4 (NOT for 1.9 Pre 3 or lower)
1.9 Pre-Release 3 Version:
Here's the download link
Fog Key Mod 1.4 for Beta 1.9 Pre-Release 3 (NOT for 1.9 Pre 2 or lower)
1.9 Pre-Release 2 Version:
Here's the download link
Fog Key Mod 1.4 for Beta 1.9 Pre-Release 2 (NOT for 1.9 Pre 1 or lower)
1.9 Pre-Release 1 Version:
Here's the download link
Fog Key Mod 1.4 for Beta 1.9 Pre-Release 1 (NOT for 1.81 or lower)
1.81 Version:
Here's the download link (ModLoader 1.81 required)
Fog Key Mod 1.3 for Beta 1.81 (NOT for 1.73 or a 1.8 Pre-Release)
NOTE: Apparently version 1.3 of this mod conflicts with zombe's modpack. I looked into my mod's coding, and my mod does not even access any of the classes that zombe's modpack modifies. Could someone check if other ModLoader 1.81 mods conflict with zombe's modpack?
Old downloads
Fog Key Mod 1.2 for Beta 1.8 Pre-Release 1 (NOT for 1.73)
Fog Key Mod 1.1 for Beta 1.8 Pre-Release 1 (NOT for 1.73)
Fog Key Mod 1.0 for Beta 1.8 Pre-Release 1 (NOT for 1.73)
NOTE: Due to some problems decompiling 1.8 pre, I used the yq(Timer) class to detect when the f key is being pushed. However, because this class is used for timing game play ticks, this mod seems to have a weird effect on how fast the game play is. I am still trying to find out how I can do an alternate implementation.
NOTE: Slow motion problem fixed, but you will have to unistall version 1.1 or 1.0 if either is installed. Use the "Disable" class file provided with both those downloads.
0
I won't be doing any serious modding until the real 1.8 is out (though, I am a bit doubtful about 1.8 being released on Monday, considering how many bugs are in the pre-release). However, since I really would like the fog toggle key back while playing the 1.8 pre-release, I will probably attempt to mod that back in (which apparently only involves adding 3 lines back to the client/minecraft.class).
0
-Mod that restores the fog toggle key
-Mod that disables Endermen
-Mod that makes Silverfish naturally spawn somewhere.
If you guys have any other ideas for relatively simple mods, feel free to mention them.
1
So when you enter a world, you don't see a message that says "Scripted Survivor Mod: ....", yet single player commands allows you to spawn them? Ok, that's really weird. What happens exactly when you try to spawn them with SPC? What other mods do you have installed?
The only possibility I can think of right now is that you didn't put all the class files into your minecraft.jar. Did you try reinstalling the mod?
0
Sure.
It sounds like I'll have to fix the signs. Thanks for letting me know.