Prerequisites:
- Ability to decompile class files from minecraft.jar
- Ability to recompile a single java file
- Ability to reintegrate that new class file back into the original jar file
Class used: kh.class
This is not a mod that I'm redistributing. It's a How To, to give a tiny clue as to do a very straightforward thing: reset the time of day to dawn.
Once you have decompiled kh.class, edit the kh.java file and add this in the top with the other import statements:
import org.lwjgl.input.Keyboard;
Inside the g_() method, insert the following lines before the return statement:
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.















