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

View previous topic View next topic Go down

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

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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