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

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

Every time you press F4, the time will be reset to something approximating dawn.


Posts : 11
Join date : 2010-10-15

View user profile

Back to top Go down

Back to top

- Similar topics

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