Skip to content
Hosting · Server setup

Time, weather, and locking them

The time and weather commands, locking eternal day, disabling rain, and how this relates to the doDaylightCycle and doWeatherCycle rules.

Updated September 28, 2026

Time and weather in Minecraft are world properties, so you set them with commands, not config.

Time

time set day        morning
time set noon       midday
time set night      night
time set 6000       arbitrary tick 0..24000
time add 1000       skip forward

Permanent day takes two steps: set the time and stop the cycle.

time set day
gamerule doDaylightCycle false

On 1.21.11 and newer, the gamerule is called advance_time: gamerule advance_time false.

Weather

weather clear 1000000    clear for a long time
weather rain
weather thunder
gamerule doWeatherCycle false

On 1.21.11 and newer — gamerule advance_weather false.

doWeatherCycle false locks the current weather: if you enable it while it's raining, the rain stays forever.

Different worlds

Commands affect the world you run them from. From the console, they affect the main world. For a specific world:

execute in minecraft:the_nether run time set day

Multi-world plugins set time and weather per world and can sync them between worlds — Multiverse.

Automation

Permanent day for the weekend, night for an event — you can set all of it in Schedule: the control panel runs the command at the time you specify.

Minecraft hostingYour server runs while you are offlineCreate server