Jump to content

[Unsolved]how to do somthing every so often(excute a function)


gmod622

Recommended Posts

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 xD).

 

Then you do:

 

if (worldDay == 7) {

    // DO something

}

 

 

that sort of thing :D

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 xD

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.