Home › Minecraft › How to Set Time to Day or Night in Minecraft

How to Set Time to Day or Night in Minecraft

How to Set Time to Day or Night in Minecraft

Night in Minecraft arrives fast, and it always seems to arrive while you are halfway home with an inventory full of diamonds. The /time command hands you control of the clock: you can jump to morning, freeze yourself at noon for a building session, or drop straight into midnight when you actually want mobs to hunt. Here is how the whole command family works.

First: Turn On Cheats

The time command only works in worlds where cheats are allowed. On Java, open the pause menu, choose Open to LAN and toggle Allow Cheats on. On Bedrock, you can switch cheats on in the world settings. Server players need operator permission. Without cheats, the command simply will not run.

Setting the Time: Day, Noon, Night and Midnight

The most-used form is /time set, followed by a keyword or a number:

  • /time set day (or /time set 1000) — early morning, the standard start of a day.
  • /time set noon (or /time set 6000) — the middle of the day, with the brightest light.
  • /time set night (or /time set 13000) — just after sunset; hostile mobs begin spawning.
  • /time set midnight (or /time set 18000) — the darkest point of the night.

Prefer the keywords. Setting a raw number also resets the world's day counter to zero, while the keyword versions move the clock without disturbing how many days your world has existed — important if you care about local difficulty, which grows over time.

The Tick Values Behind the Clock

Minecraft time is measured in ticks. One tick lasts 50 milliseconds, and a full day-night cycle is 24,000 ticks — exactly 20 real-world minutes.

MomentTick Value
Sunrise0–1000
Noon6000
Sunset / nightfall13000
Midnight18000
Full day length24000 (20 real minutes)

Adding Time and Checking Time

The command has two more keywords worth knowing. /time add X pushes the clock forward instead of setting it — add a number followed by d for days, s for seconds or t for ticks, so /time add 1d ages your world by a full day. /time query reports instead of changing: query daytime shows the current tick within today (never above 24,000), query day shows how many days have passed, and query gametime shows total ticks since the world was created.

Stopping the Clock Altogether

If you want daylight that never ends, use /gamerule doDaylightCycle false. The sun freezes wherever it currently is until you turn the rule back on. That is the trick adventure maps and building showcases use for permanent golden hour. Note what the time command cannot do: it cannot speed the world up. It only moves the clock — for faster crops and processes you need the random tick speed gamerule or the /tick command instead.

Useful Conversions to Remember

A few numbers are worth memorising. One thousand ticks is one in-game hour and takes 50 real seconds. A full week of game time is 168,000 ticks, roughly two hours and twenty minutes of play, and a complete lunar cycle — every moon phase — runs 192,000 ticks, about two hours and forty minutes. For a single night, a bed is still simpler than any command; the time command earns its place in creative building, map testing and server management, where the clock needs to go exactly where you put it.

Frequently asked questions

How do you set the time to morning in Minecraft?

Use /time set day for the start of the morning, or /time set 0 to land exactly on sunrise at the very beginning of a new day.

How do you stop the daylight cycle in Minecraft?

Run /gamerule doDaylightCycle false. Time freezes at the current moment until you set the rule back to true.

Why does the time command not work in my world?

It requires cheats. Enable Allow Cheats from the LAN menu on Java or the world settings on Bedrock, or get operator status on a server.

How long is one Minecraft day in real time?

A full day-night cycle is 24,000 ticks, which equals 20 real-world minutes — 10 minutes of day and roughly 10 of night and transitions.