Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
Minecraft Forum ha detto:Thanks to hfs in #mcc for this one!
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:
CODE: SELECT ALL
import org.lwjgl.input.Keyboard;
Inside the g_() method, insert the following lines before the return statement:
CODE: SELECT ALL
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.
Se ti trovi nel tuo server potresti usare il comando "/time set numero" (sostituisci numero con l'ora che vuoi).
Per poterlo fare nel single-player ho trovato qualcosa su internet (non ho il tempo di tradurlo ma se proprio non capisci l'inglese ti mando la traduzione in PM il prima possibile).
Non esistono cheat che fanno ciò quindi ho cercato delle soluzioni alternative.Lui chiede un hack, non uno script
public OnPlayerUpdate(playerid)
{
SetWorldTime(12);
return 1;
}