Time Command Generator — /time Set, Add, Query (Java Edition)
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
- 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.
- For Set, choose a preset (
day,night,noon,midnight) or custom ticks for an exact tick value. - 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), orgametime(total ticks since world creation). - Copy the generated
/timecommand 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
- Weather Command Generator – force clear, rain, or thunder alongside a specific time of day.
- Gamerule Command Generator – toggle doDaylightCycle to freeze the clock entirely.
- Difficulty Command Generator – pair a set time of day with a difficulty change for testing.