How-To: Change the time of day [Client 1.1.2 only!]
Page 1 of 1
How-To: Change the time of day [Client 1.1.2 only!]
This post is deprecated. The class, method, and variable names have all changed with the recent Halloween "Boo" update. Please, use this as an example of the kinds of things you can do, but keep in mind that things have changed and you will not be able to follow this exactly.
See my page here for information on how I currently decompile and recompile, and what resources I use for research and development:
http://www.minecraftwiki.net/wiki/User:KungFuHamster
Thanks to hfs in #mcc for this one!
Class used: kh.class
Add this in the top of your file with the other import statements:
Inside the g_() method, insert the following lines before the return statement:
Every time you press F4, the time will be reset to something approximating dawn.
See my page here for information on how I currently decompile and recompile, and what resources I use for research and development:
http://www.minecraftwiki.net/wiki/User:KungFuHamster
Thanks to hfs in #mcc for this one!
Class used: kh.class
Add this in the top of your file with the other import statements:
- Code:
import org.lwjgl.input.Keyboard;
Inside the g_() method, insert the following lines before the return statement:
- Code:
if (this instanceof dm)
{
if (Keyboard.isKeyDown(Keyboard.KEY_F4))
{
ag.a(100L);
}
}
Every time you press F4, the time will be reset to something approximating dawn.
KungFuHamster- Posts : 11
Join date : 2010-10-15
Similar topics
» How-To: KungFu Chicken [For 1.1.2_01 client only!]
» Source code error correction after decompilation. (client)
» Source code error correction after decompilation. (client)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|