Our news See more of us on Google? Add
Discord

/time command

The /time command sets, advances and checks the time in the world. Since Java 26.1, it works on world clocks, so you can also pause time or change how fast it passes.

World and environment OP 2 since Beta 1.3

Syntax

Java Edition

/time [of <clock>] (set <ticks|marker>|add <ticks>|query <what>|pause|resume|rate <multiplier>)

Bedrock Edition

/time (set <ticks|marker>|add <ticks>|query <daytime|gametime|day>)

Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.

Parameters

Parameter Type Required Description
of <clock> clock ID (Java 26.1+) No The world clock the command works on. Without this argument, the game uses the dimension's default clock: minecraft:overworld in the Overworld and minecraft:the_end in the End. In a dimension with no default clock, such as the Nether, the command fails without the of argument.
set | add | query | pause | resume | rate subcommand Yes What you want to do with the time. The pause, resume and rate subcommands only exist in Java 26.1 and newer.
ticks | marker number or name No Used with set and add (20 ticks is 1 second). Markers in Java: day (1000), noon (6000), night (13000), midnight (18000). Bedrock also has sunrise (23000) and sunset (12000). Since Java 26.1, set with a number sets the clock's total tick count, while set with a marker moves the clock forward to the next occurrence of that moment.
what (query) name No Java 26.1+: time (the clock's ticks), gametime (the world's age), <timeline> or <timeline> repetition, for example minecraft:day. Bedrock: daytime, gametime or day.
multiplier (rate) number No How fast the clock runs: greater than 0 and no more than 1000. A value of 1 is normal speed.

Usage examples

Example 1
/time set day

Moves the time to the nearest morning (1000 ticks into the day cycle). Since Java 26.1, the clock only moves forward when you do this.

Example 2
/time set noon

Sets the time to noon (6000 ticks), when the sun is at its highest.

Example 3
/time add 6000

Moves the time forward by 6000 ticks, which is a quarter of a day (5 minutes of real time).

Example 4 Java
/time pause

Stops the dimension's default clock. The /time resume command starts it again.

Example 5 Java
/time rate 10

Days go by 10 times faster, but the rest of the game runs at normal speed. That's how it differs from /tick rate, which speeds up the whole simulation.

Example 6 Java
/time query minecraft:day repetition

Shows how many full days have passed on the Overworld clock.

Example 7 Bedrock
/time query day

Shows the number of the current day.

Tips and tricks

*

A full day lasts 24,000 ticks, which is 20 minutes of real time.

*

To stop the day cycle, use a game rule: /gamerule advance_time false in Java 1.21.11 and newer (formerly doDaylightCycle), or /gamerule dodaylightcycle false in Bedrock.

*

Since Java 26.1, set and add return the clock's total tick count (for example to /execute store) instead of the time of day.

*

/time query gametime counts the world's age and doesn't change after /time set or /time add.

*

In Bedrock 26.50, /time of only works with the Creator World Clocks Features experiment. Experimental features may still change.

Related commands

Frequently asked questions

How do you use the /time command in Minecraft?

Open the chat with the T or / key and type the command using this syntax: /time [of <clock>] (set <ticks|marker>|add <ticks>|query <what>|pause|resume|rate <multiplier>). The /time command sets, advances and checks the time in the world. Since Java 26.1, it works on world clocks, so you can also pause time or change how fast it passes.

What permissions does /time require?

The /time command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.

Does /time work in Bedrock Edition?

Yes, the /time command works in both editions, but the syntax differs between Java and Bedrock Edition. You'll find the syntax for both versions above.