Stop time
/time set changes the current time but does not freeze it. The second command disables the daylight cycle. Before 1.21.11, that game rule was named doDaylightCycle.
/gamerule advance_time false/gamerule advance_time trueBuilding
Enter a time — get the tick and a ready command /time set. Tick 0 is six in the morning, not midnight: this is where the confusion stems from.
Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.
There are two fields because 6 could mean six in the morning or the sixth tick. Enter clock time as 18:30.
The command
/time set 0/time set changes the current time but does not freeze it. The second command disables the daylight cycle. Before 1.21.11, that game rule was named doDaylightCycle.
/gamerule advance_time false/gamerule advance_time trueOne command isn't enough: first set the day, then stop time flow. For eternal night, use 'night' instead of 'day'.
/time set day/gamerule advance_time false/time add adds to the current time, not sets an absolute value: 24000 is exactly one day, 1000 is one game hour.
/time add 24000daytime — time within a day, from 0 to 23999. Nearby are day (day number, affects moon phase) and gametime (all ticks since world creation).
/time query daytimeThe rule calculates the percentage of players who need to be in bed, defaulting to 100. A value of zero means any single player is sufficient. Before 1.21.11, this rule was called playersSleepingPercentage.
/gamerule players_sleeping_percentage 0| Tick | Time | What happens | The word in the command |
|---|---|---|---|
| 0 | 06:00 | Dawn begins. Players wake up, tick 24000 — that's it. | — |
| 1000 | 07:00 | Day. The sun has risen. | day |
| 6000 | 12:00 | Noon. The sun is at its zenith. | noon |
| 12000 | 18:00 | Start of sunset | — |
| 12542 | 18:33 | You can go to sleep. In clear weather; undead stops glowing. | — |
| 13000 | 19:00 | Night | night |
| 13188 | 19:11 | Mobs begin spawning. Under open sky, in clear weather. | — |
| 18000 | 00:00 | Midnight. The moon is at its zenith. | midnight |
| 22812 | 04:49 | Mobs stop spawning. Under open sky, in clear weather. | — |
| 23000 | 05:00 | Start of dawn | — |
| 23460 | 05:28 | Sleeping is no longer possible. Zombies start glowing again. | — |
Operator permissions are required. Time will change for all players in the world at once — everyone will have the same day.
/gamerule advance_time false After installation: days will align to this moment (What else this rule can do).
/time query daytime Responds to ticks — these are entered in step 1.
Values are verified against Minecraft Wiki (Daylight cycle → 24-hour Minecraft day) and apply to Java Edition.
Night starts around tick 13000, dawn around 23000. Tick 0 is six in the morning, not midnight: that's where the confusion comes from.
With the command /gamerule advance_time false (until 1.21.11 — doDaylightCycle). To create a permanent day, use two commands in strict order: first set the day, then stop time progression.
24000 ticks, or twenty real minutes. Twenty ticks per second, and one in-game hour equals exactly 1000 ticks.