How is time counted in Minecraft/Bukkit?

Discussion in 'Plugin Development' started by Schwarzer Zylinder, Dec 23, 2011.

Thread Status:
Not open for further replies.
  1. Hey,
    I want to restrict the use of my plugin to certain time intervals.
    But I don't know how time in minecraft is counted? So, how can I convert the time from the .getTime() method to real time and which is the highest possible time?
    I need some explanations =)
     
  2. Offline

    unicode21B9

    Time is measured in ticks (1/20 second).
    1000 ticks is one minecraft hour, 24000 ticks is one minecraft day which starts at 0 ticks = 6:00 am.
    World.getTime() returns the current time of day (0 to 23999 ticks), world.getFullTime() returns any value, likely the the amount of ticks since the world was created.
     
    hammale likes this.
  3. Thanks, that should be all I need to know!
     
Thread Status:
Not open for further replies.

Share This Page