This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Quote from Light09 I believe there is a sleep function to wait time : Ex: Thread.sleep(5000); // do nothing for 5000 miliseconds or 5 second
So I'm trying to make mods with MCP, and before I can do much, I need to learn how to make a delay. I want it basically to do this
code1
delay 5 seconds
code2
etc.
All help is appreciated.
Ex:
Thread.sleep(5000); // do nothing for 5000 miliseconds or 5 second
I'm testing now, thanks.
"unreported exception java.lang.InterruptedException; must be caught or declared to be thrown
Thread.sleep(100);"
I don't know what this means, I'm new to modding T_T