MC Commands

Minecraft Time Command Generator

Easily generate the /time command to change the time of day, add to the current time, or query the world time in Minecraft.

Select Action

/time set day

What this generator does

Pick your version and the generator only builds /time commands that version supports. For example, /time query needs 1.8, query day needs 1.9, and noon and midnight need 1.13, so choosing an older version shows that they are unavailable. The share link button sends your exact settings to someone else.

Command Usage Examples

1. Switch to morning

day is 1000 ticks (7 AM). Since 26.1 it moves the clock forward to the next morning; older versions set the time straight to 1000, which resets the day count to 0.

/time set day

2. Skip a day

Since 1.13 you can add the units d (in-game days), s (seconds) and t (ticks). add moves time forward and keeps the day count.

1.13+/time add 1d
~ 1.12/time add 24000

3. Just before sunset

12000 ticks (6 PM) is when the sun touches the horizon, handy for sunset screenshots.

/time set 12000

4. Turn time back

Since 26.1 add accepts negative numbers to turn time back. Older versions do not allow negatives, so set the target time directly (for example, 6000 if it is now 12000).

26.1+/time add -6000
~ 1.21.11/time set 6000

5. Stop time

Uses a game rule so day and night stop changing. In 1.21.11 it was renamed from doDaylightCycle to advance_time. Since 26.1 you can also stop the clock with /time pause and restart it with /time resume.

1.21.11+/gamerule advance_time false
~ 1.21.10/gamerule doDaylightCycle false

/time changes by version (Java Edition)

The same /time command offers different subcommands and behaves differently depending on the version.

VersionChange
1.8Added /time query to read daytime (time of day) and gametime (total world ticks).
1.9Added /time query day to read the number of days passed.
1.13Added noon and midnight to set, and time values accept the units t, s and d.
1.21.11Game rules were renamed: use advance_time instead of doDaylightCycle.
26.1/time now works on world clocks. Names like set day move the clock forward to the next occurrence, add accepts negative numbers, and pause, resume and query time were added.

How we checked: the commands and error messages on this page were run and confirmed by the site operator on our own Java server (except permission cases involving other players). Version data is extracted from the official server jar's data generator reports, and the 26.1 changes follow the official snapshot notes (26.1 Snapshot 3). Last checked: November 2026.

Useful numbers

Values people look up most often when setting the time. All for Java Edition.

1. Ticks and in-game clock time

Divide the tick value by 1000 and add 6 to get the in-game hour. · 0: 6 AM (sunrise) · 1000 (day): 7 AM · 6000 (noon): noon · 12000: 6 PM (sunset) · 13000 (night): 7 PM · 18000 (midnight): midnight · 23000: 5 AM (dawn)

2. Real-time conversions

· 1 second = 20 ticks · 1 in-game hour = 1000 ticks = 50 real seconds · 1 in-game day = 24000 ticks = 1d = 20 real minutes · 1 real hour = 72000 ticks = 3d

3. Moon phases and time

The moon's shape follows the day count in an 8-day cycle. Skipping a day with /time add 24000 moves to the next phase, and resetting the day count with a number in /time set brings back the full moon.

Frequently Asked Questions (FAQ)

Q. /time set day reset my day count to 0.

A. Before 26.1, /time set overwrites the time directly, so the day count and moon phase also go back to the start. To keep the day count, move time forward with /time add. Since 26.1, names like set day move forward to the next morning and keep the day count, but a number such as /time set 1000 still sets the clock's total elapsed ticks to that value.

Q. /gamerule doDaylightCycle false does not work.

A. Game rules were renamed in 1.21.11. In current versions, type /gamerule advance_time false. In 1.21.10 and earlier, keep using doDaylightCycle.

Q. /time add 1h gives 'Invalid unit'.

A. Time values only accept three units: t (ticks), s (seconds) and d (in-game days). There is no h or m. One in-game hour is 1000 ticks (50 real seconds), so use /time add 1000. In 1.12 and earlier you cannot add units; type ticks only.

Q. /time add -1000 gives an error.

A. Before 26.1, /time add cannot take a negative number, so it fails. To turn time back, set the exact time with /time set. Since 26.1, add accepts negative numbers.

Q. What is the difference between query daytime, gametime and day?

A. In 1.21.11 and earlier, daytime is the current time of day (0–23999), day is the number of days passed, and gametime is the total ticks the world has actually run. daytime and day change with /time, but gametime does not, so it is used for timers and logs. Since 26.1, queries are based on timelines, adding query time (total elapsed ticks of the clock) and query '<timeline>'; gametime is unchanged.

Q. I get 'Unknown or incomplete command. See below for error'.

A. You lack permission or the command is incomplete. /time needs a world with cheats on or operator permission (level 2), and leaving out a value, as in /time set, also causes this error.