
level.dat & world settings · Java & Bedrock · Beginner
How to Reset World Day Counter, Time of Day, and Weather State in level.dat
Resetting your Minecraft world's day counter, time of day, and weather state is useful when preparing custom maps or starting a fresh chapter on an existing survival world. While in-game commands can alter the sun's position, they often just add ticks to the internal clock, making the day counter jump forward instead of resetting to zero. Using our browser-based level.dat Editor, you can safely adjust these exact NBT tags directly on your device without uploading any files.
What you need
- A Minecraft Java Edition or Bedrock Edition world folder (or a .zip archive of it).
- Access to the level.dat Editor on our site.
- A complete backup copy of your world folder stored in a safe location.
Step by step
1Close Minecraft and Back Up Your World
Before modifying any game files, ensure that you have completely exited your world and closed Minecraft. Navigate to your game's saves directory and duplicate your entire world folder to create a backup. This ensures that if you accidentally enter an invalid number, you can immediately restore your original world without losing progress.
Tip: If you are editing a multiplayer server world, make sure to completely stop the server before accessing the files.
2Load Your World into the level.dat Editor
Open the level.dat Editor on our site. Click the button to open your world folder or .zip file, or drag and drop the `level.dat` file directly from your world folder into the browser window. The tool runs entirely in your browser, so your world file is read instantly without being uploaded anywhere. If you are editing a Java Edition world, expand the root `Data` compound tag to view the world properties; for Bedrock Edition, the tags will be visible directly at the root level.
3Reset the Day Counter and Time of Day
Locate the `DayTime` tag (or ` currentTick` / `Time` depending on your exact edition version). `DayTime` controls both the sun's position and the day counter shown on the debug screen. To reset your world to sunrise on Day 0, change the `DayTime` value to `0`. If you also want to reset the total lifetime tick counter of the world, locate the `Time` tag and set it to `0` as well, though leaving `Time` untouched is generally safer for existing redstone contraptions and scheduled game events.
Tip: To start at a specific time on Day 0, set `DayTime` to `0` for sunrise, `6000` for noon, `12000` for sunset, or `18000` for midnight.
4Reset the Weather State and Timers
Find the weather-related tags in the same list: `raining`, `thundering`, `rainTime`, and `thunderTime` (in Bedrock Edition, look for `rainLevel` and `lightningLevel` alongside the time tags). To force clear skies, set `raining` and `thundering` (or the level tags) to `0`. Next, set `rainTime` and `thunderTime` to a high number of ticks, such as `120000` (which equals 100 minutes of real-time clear weather). If you leave the time tags at `0`, the game engine will immediately roll for a new weather state the moment you load the world.
Tip: In Java Edition, you may also see a `clearWeatherTime` tag; setting this to `0` allows natural weather cycles to resume once your `rainTime` countdown finishes.
5Save and Replace Your level.dat File
Once you have updated the tags, click the Save or Download button in the level.dat Editor to generate your modified `level.dat` file. Move this downloaded file into your Minecraft world folder, choosing to overwrite the existing `level.dat` file when prompted. Launch Minecraft, open your world, and press F3 (in Java Edition) or check the sky to verify that it is Day 0 with clear weather.
How it works
Minecraft measures time using game ticks, where 20 ticks equal 1 real-life second, and 24,000 ticks equal one full 20-minute in-game day. The `level.dat` file stores time across two distinct 64-bit integer (Long) tags: `Time` and `DayTime`. The `Time` tag strictly tracks the total number of ticks that have passed since the world was generated. It is used internally by the game engine to calculate regional difficulty, age entities, and process scheduled tile ticks.
The `DayTime` tag specifically tracks the day-night cycle and the visible day counter. When you use the in-game `/time set day` command in newer versions of Minecraft, the game does not rewind `DayTime`; instead, it advances the number forward to the next morning multiple of 24,000, which causes the day counter to keep climbing. By manually editing `DayTime` back to `0` in `level.dat`, you divide 0 by 24,000, forcing the game's debug screen and internal clock back to Day 0.
Weather operates on a state-and-countdown mechanic. The boolean byte tags `raining` and `thundering` (or float level tags in Bedrock) tell the game whether precipitation is currently active (`1` for true, `0` for false). Meanwhile, `rainTime` and `thunderTime` are 32-bit integers that decrease by 1 every game tick. When a timer reaches `0`, the game toggles the corresponding weather state and generates a new random timer value. Setting the state to `0` and the timer to a large positive number guarantees clear skies until that timer counts all the way down.
Common mistakes
- Editing `level.dat` while the world is still open in Minecraft, which causes the game to overwrite your changes the moment you save and quit.
- Setting `rainTime` or `thunderTime` to `0` expecting clear weather, which actually triggers the game to immediately toggle the weather state upon loading.
- Entering a negative number into `DayTime` or `Time`, which can corrupt the daylight cycle or cause visual glitches with sky rendering.
- Forgetting to rename the downloaded file back to `level.dat` if your browser automatically appends a number like `level (1).dat` during the download.
FAQ
Will resetting the `Time` tag break my survival world?
Resetting `DayTime` is completely safe, as it only affects the sun, moon, and day counter. However, resetting the total `Time` tag to `0` on an old world can occasionally temporarily freeze scheduled block updates or alter local difficulty calculations, so only reset `DayTime` if you just want the F3 screen to say Day 0.
Why does my weather change back to rain right after I set `raining` to 0?
You likely left `rainTime` at a very low number or `0`. Make sure to set `rainTime` to a large number like `24000` (one full in-game day) so the clear weather state lasts before the countdown hits zero.
Does this method disable advancements or achievements?
No. Modifying `Time`, `DayTime`, and weather tags in `level.dat` does not trigger the cheat flags in either Java or Bedrock Edition, allowing you to continue earning achievements normally.
By adjusting the `DayTime` and weather tags in your world's `level.dat` file using our browser-based editor, you can cleanly reset your Minecraft world back to Day 0 with clear skies without affecting your builds or disabling achievements.