Jump to content

[Solved]How many ticks is a Minecraft day?


Ynscription

Recommended Posts

Hello there I've been investigating and I don't seem to find any clue about any of the following questions:

 

- How many seconds /nanoseconds is a tick in minecraft?

 

- How many ticks does a minecraft day have?

 

- Is a minecraft day 24 minutes long? If not, how long is it?

 

Thank you.

 

For further information I'm trying to call an event on sunrise, I'm trying to do it with a ScheduledTickHandler. Is there a better way?

Link to comment
Share on other sites

Thank you very much vroominator.

 

 

the Part of IScheduladedTickHandler its right, but for the tick time, you can just calculate by the lighting valule like the mobs do.

 

Wouldn't this be very inefficient? it would check every tick or so if there is sunlight, while calling the method every 20 minutes would... well do it once every 20 minutes.

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.