Most of these need operator permission — run them from an op's chat, a command block, or the server console.

How to Use the Time Command Generator

  1. Pick a mode: Set to jump straight to a specific time, Add to advance the clock by a number of ticks, or Query to read back the current value.
  2. For Set, choose a preset (day, night, noon, midnight) or custom ticks for an exact tick value.
  3. For Add, enter how many ticks to advance by. For Query, pick which value to read: day (days elapsed), daytime (time within the current day), or gametime (total ticks since world creation).
  4. Copy the generated /time command into a command block, the console, or an operator’s chat.

Command Syntax Reference

/time set <day|night|noon|midnight|<ticks>>
/time add <ticks>
/time query <day|daytime|gametime>

Minecraft’s day/night cycle runs on a 24000-tick loop, with each tick being 1/20th of a second under normal server speed. The presets map to fixed points in that cycle: day = 1000, noon = 6000, night = 13000, midnight = 18000. /time set jumps the clock directly to a value (it does not affect elapsed day count), while /time add advances the clock forward by the given number of ticks from wherever it currently sits – useful for skipping ahead without knowing the exact absolute tick.

Frequently Asked Questions

How many ticks are in a full Minecraft day?

24000 ticks make up one full day/night cycle, which lasts 20 real-world minutes at the default tick rate (20 ticks per second). /time set day corresponds to tick 1000 within that cycle, not tick 0.

What’s the difference between /time query day, daytime, and gametime?

day returns the number of full in-game days that have elapsed since world creation. daytime returns the current tick position within the 24000-tick day/night cycle (0-23999). gametime returns the total number of ticks that have passed since the world was created, ignoring the day cycle entirely.

Does /time set day always make it exactly sunrise?

Not exactly sunrise – day corresponds to tick 1000, which is shortly after sunrise, while true sunrise is closer to tick 0/23000. If you need the precise sunrise moment, use /time set 23000 or a nearby custom tick value instead of the day preset.

Will /time set day permanently stop night from happening again?

No – /time set only jumps the clock once. Unless the doDaylightCycle gamerule is turned off, time keeps advancing normally afterward and night will still arrive on schedule.

Related Tools