MCDOCS
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How-To: Change the time of day [Client 1.1.2 only!]

Go down

How-To: Change the time of day [Client 1.1.2 only!] Empty How-To: Change the time of day [Client 1.1.2 only!]

Post  KungFuHamster Sat Oct 16, 2010 11:04 pm

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:
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

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum