Posted August 8, 201312 yr how to do somthing every so often to excute a function? like every 1 minecraft day. Not new to java >> New to modding.
August 8, 201312 yr Make a Event handler that uses the LivingUpdateEvent. In that, check if the worlds time is a multiple of however long a minecraft day is. (or you could just figure out what variable holds the day ). Then you do: if (worldDay == 7) { // DO something } that sort of thing I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
August 8, 201312 yr Author Can you give me a more descriptive way of doing it. Not new to java >> New to modding.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.