How to Change the Time of Day in Minecraft
Minecraft's day-night cycle runs on a fixed 20-minute loop — roughly 10 minutes of daylight, 90 seconds of sunset and sunrise, and about 7 minutes of nighttime darkness. That cycle is great for atmosphere, but sometimes you just want to build in daylight, avoid hostile mob spawns, or set up a specific scene for a screenshot. Changing the time of day in Minecraft is straightforward once you know where to look — but the exact method depends on your game mode, platform, and world settings.
Why You Might Want to Change the Time
The most common reason players want to skip time is avoiding nighttime mob spawns. Creepers, zombies, and skeletons spawn in darkness, and for players focused on building or exploring, managing the clock is a practical survival tool.
Other reasons include:
- Setting up cinematic screenshots or video recordings at golden hour
- Testing lighting conditions for redstone builds or architectural projects
- Resetting the clock after an accidental overnight session
- Running a server where consistent daytime keeps all players in sync
The Primary Method: Using the /time Command 🕐
The fastest and most flexible way to change time in Minecraft is the /time command, available in Java Edition and Bedrock Edition.
How to Open the Command Console
- PC (Java Edition): Press the
/key orTto open chat, then type your command - PC (Bedrock Edition): Same — press
Tor/ - Console (Xbox, PlayStation, Nintendo Switch): Open chat using the right directional button or the dedicated chat button on your controller
- Mobile (Pocket Edition/Bedrock): Tap the chat bubble icon at the top of the screen
The /time set Commands
| Command | What It Does |
|---|---|
/time set day | Sets time to early morning (1000 ticks) |
/time set noon | Sets time to midday (6000 ticks) |
/time set night | Sets time to nightfall (13000 ticks) |
/time set midnight | Sets time to midnight (18000 ticks) |
/time set sunrise | Sets time to sunrise (23000 ticks) |
/time set 0 | Resets to the very start of the day cycle |
You can also use any specific tick value between 0 and 23999 for precise control. One full Minecraft day equals 24,000 ticks.
Requirements to Use Commands
This is where many players hit a wall. To use the /time command, cheats must be enabled in your world. In Java Edition, this is set when creating the world under "More World Options." In Bedrock Edition, it's toggled in the world settings as "Activate Cheats."
If you're playing in Survival mode on a world where cheats were never enabled, you cannot use this command without either creating a new world or — in Java Edition — briefly opening your world to LAN with cheats enabled, which retroactively unlocks them for that session.
On multiplayer servers, only players with operator (OP) status can run the /time command. Standard players won't have this permission unless the server admin grants it.
Alternative: Using a Bed ☀️
If you're in Survival mode without cheats and just want to skip the night, sleeping in a bed is the vanilla solution. All players in the world (or a configurable percentage on multiplayer servers) must sleep simultaneously for the night to skip. This works in both Java and Bedrock editions, though server configurations can adjust the required player percentage using the playersSleepingPercentage game rule.
Beds don't give you precise time control — they skip straight to dawn — but they're the intended mechanics-based option for players who want to keep their world cheat-free.
Game Rule: Stopping Time Entirely
If you want to freeze the time of day rather than just set it, Minecraft has a dedicated game rule for that:
/gamerule doDaylightCycle false This stops the day-night cycle completely, locking the world at whatever time it's currently set to. Run /time set day followed by /gamerule doDaylightCycle false and the sun stays fixed overhead indefinitely. Reverse it anytime with:
/gamerule doDaylightCycle true This is particularly useful for creative builds, photography sessions, and server environments where constant darkness or daylight serves the community's needs.
Platform-Specific Nuances
Java Edition gives you the most control and the most documentation online. Commands work exactly as described, and third-party tools like external world editors can manipulate time settings even in worlds without cheats enabled.
Bedrock Edition (covering Windows, consoles, and mobile) follows the same command syntax in most cases, but interface navigation to enable cheats varies slightly by platform. On consoles especially, finding the "Activate Cheats" toggle requires navigating to Settings > World before entering the game.
Realms — Minecraft's official hosted multiplayer service — restricts cheats and operator commands depending on who owns the Realm and what permissions they've set. If you're a guest on someone else's Realm, you may not be able to change time at all without the owner's involvement.
What Varies From Player to Player
The method that works for you depends on a specific combination of factors: whether your world has cheats enabled, which edition you're playing, whether you're on a server and what permissions you hold, and what you're actually trying to accomplish. A solo creative builder has completely different options than someone playing survival co-op on a friend's Realm or a managed community server.
Understanding which of those situations describes your setup is the piece that determines which of these methods will actually work for you.