The basic command for "setting it to day, setting it to night, or stopping it at your preferred time" in Minecraft is /time set. It becomes quite convenient once you learn it, such as quickly switching to morning when night gets scary, or stopping time so shadows don't move while you're building. In this article, I will explain how to use it for both Bedrock/BE and Java Edition, from basic copy-paste commands to the "extra tips" I use often.
Supported versions (this is important)
Here, I will write the versions where "basic time set" works. The supported versions for "extra tips" like time-of-day keywords are written under each respective heading.
For both Java Edition and Bedrock/BE, up to the current latest version: Basic specifications like time set day (morning) or time set 6000 (numerical value) have been commonly used in both editions for a long time.
The difference appears only with some keywords like sunrise. I will explain those in detail separately in "Extra Tip 1".
What you can do with this article
Set the time to day or night
Set it to your preferred time of day, such as "evening" or "dawn," using numerical values
Stop time and lock it at that time of day
Advance time or check the current time
When I build, I stop time at noon before I start working. If the shadows don't move, it's easier to match colors precisely, and since it doesn't suddenly get dark at night, I can concentrate on my work.
Basics of the time set command (copy-paste)
The basic usage is just "specify the time after time set." To set it to morning,
time set day
To set it to night,
time set night
You can also specify it with a numerical value. For example, to set it to noon (12:00 PM),
time set 6000
is the command. The numerical value is between 0 and 24000, which corresponds to one day (20 minutes in real life).
Relationship between time (clock time) and numerical values
These are guidelines for when specifying with numerical values. 0 is the start of the morning, and the numbers increase from there.
0 ... Around 6 AM (start of the day)
1000 ... Morning (same as day)
6000 ... Noon (same as noon)
12000 ... Evening/around sunset
13000 ... Night (same as night; monsters will start spawning)
18000 ... Midnight (same as midnight)
23000 ... Around dawn
Once it reaches 24000, it resets to 0 and becomes the next day.
Tip 1: Specify the time of day using keywords (differs by edition)
You can quickly specify the time using keywords without memorizing the numbers. However, please note that the available keywords differ slightly by edition.
Keywords available in both editions
day / noon / night / midnight
time set noon
Keywords available only in Bedrock/BE
sunrise / sunset
time set sunset
Java Edition does not have these two keywords. If you want to set it to sunrise or sunset in Java Edition, specify it using numbers (use time set 23000 for sunrise, or time set 12000 for sunset).
time set 12000
Tip 2: Stop and freeze time
If you want to "keep it daytime forever" or "freeze the view at sunset," you can stop the flow of time itself. Simply turn off the day-night cycle in the game rules. This works in both Java Edition and Bedrock/BE.
First, stop time,
gamerule doDaylightCycle false
then set it to your preferred time of day.
time set 6000
This will keep it fixed at noon. When you want to revert it and let time flow again,
gamerule doDaylightCycle true
It is useful for building or when you want to stop monsters from spawning at night. For information on how to use the gamerule command, please see our detailed explanation.
Extra Step 3: Advancing time and checking the current time
In addition to specifying an exact value, you can also "advance time a little from now." Using time add allows you to add to the current time. This can be used in both the Java Edition and Bedrock/BE.
time add 1000
This will advance time by 1000 ticks (a small amount) from now.
If you want to check what time it is, use time query.
time query daytime
The current time of day (where you are between 0 and 24000) will be displayed. If you change daytime to day, you can see "how many days have passed," and if you set it to gametime, you can see the "total number of ticks since the world started."
When it doesn't work (troubleshooting points)
Is cheats enabled?: time set cannot be used unless cheats (commands) are enabled (see the note at the beginning).
Time keeps moving: If left alone, time will continue to flow. If you want to freeze it, please execute gamerule doDaylightCycle false from "Extra Step 2" first.
Error with sunrise or sunset (Java Edition): These two are keywords exclusive to the Bedrock/BE version. In the Java Edition, please specify them using numbers (23000 or 12000).
Monsters don't spawn even at night: This may be because the area is too bright, the difficulty is set to Peaceful, etc.
Symbols or characters are full-width: All commands must be entered in half-width characters. Be especially careful when copying and pasting from the web.
Conclusion
In this article, we covered the basic command time set. Being able to switch between day and night, set the time to exactly when you want it, or freeze time makes both building and adventuring much more comfortable.
give, tp, gamemode, weather, and other basic commands are explained one by one in separate articles. Please check them out as well.
Feel free to let us know in the comments section what time of day you like to build in!
#Minecraft #MinecraftCommands #TimeCommand #MinecraftBedrock #MinecraftJava #MinecraftBuilding