MCTOOLBOX
MC ToolboxMC TOOLBOX

Minecraft Time & Weather Commands

Generate /time, /weather, and gamerule commands. Works for Java and Bedrock Edition.

Time Controls
Operation
Time of Day
Gamerule
Daylight cycle: enabled
Weather Controls
Weather Type
Duration (seconds)
Gamerule
Weather cycle: enabled
Generated Commands
/time set
/time set day
/weather
/weather clear
/gamerule doDaylightCycle
/gamerule doDaylightCycle true
/gamerule doWeatherCycle
/gamerule doWeatherCycle true
Tip: 24,000 ticks = 1 full Minecraft day (20 real minutes). Use /time add to advance time without resetting it.

Time, Weather, and Gamerule Notes

Minecraft time is measured in ticks, with 24,000 ticks making one full day. Use named presets like day, noon, night, and midnight for quick commands, or enter a custom tick value when you need a specific lighting angle for screenshots, farms, or map scenes.

Weather commands can be temporary or open-ended depending on whether you include a duration. The daylight and weather cycle gamerules are useful for build worlds and servers, but remember to turn them back on if your survival players expect normal day-night and storm behavior.

Use presets for common scenes and ticks for precise timing

Day, noon, night, and midnight are easy to recognize when preparing a build world or screenshot. Exact tick values are better when a command block, function, or scripted event must return to the same lighting position every time. Use /time add when you want to move the clock forward without replacing its current value.

Check permissions and version behavior before automation

Run these commands as an operator, from a command block, or from a function with the required permission. Java 26.1 expanded /time with world clocks, pause, resume, and rate controls, while this builder focuses on the common set, add, query, weather, and cycle commands. Test scheduled commands on a copy of the world before using them in a live server event.

Frequently Asked Questions

How long is a Minecraft day?

One full day/night cycle is 24,000 ticks, equal to exactly 20 real-world minutes (at default game speed).

Can I freeze time permanently?

Yes - toggle "Daylight cycle" off. This sets /gamerule doDaylightCycle false, freezing the sun and moon in place.

What does the weather duration do?

It controls how many seconds the weather persists before changing. Leave it blank and the game picks a random duration.

Do these commands work on Bedrock?

The common /time and /weather forms are available in both editions, but gamerule names, command suggestions, permissions, and newer Java world-clock options can differ. Use the generated command as a starting point and verify it in the edition and version you run.