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.

Open the level.dat EditorChange world name, game mode, difficulty, hardcore, cheats, spawn, time and weather.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

More level.dat & world settings guides

level.dat & world settingsHow to View or Change Your World Seed and WorldGenSettings in level.datYour Minecraft world's terrain generation rules and seed are stored inside the master configuration file known as level.dat. Using our browser-based level.dat Editor, you can easily inspect or replace the generation seed for the Overworld, Nether, and End without uploading any of your files to a server. This guide covers both Java Edition (including the modern WorldGenSettings compound) and Bedrock Edition.Java & BedrockIntermediate6 steps
level.dat & world settingsHow to Change the Global World Spawn Point Coordinates in level.datThe global world spawn point determines where brand-new players enter your Minecraft world, where players return if their bed is destroyed, and which direction standard compasses point. By editing the world configuration directly inside the level.dat file, you can relocate this central hub to any coordinate without needing in-game cheats enabled. Using our browser-based level.dat Editor, your files are processed locally on your device and never uploaded to any server.Java & BedrockBeginner5 steps
level.dat & world settingsHow to Edit Minecraft GameRules Offline Using the level.dat EditorModifying Minecraft GameRules offline allows you to adjust core world behaviors—like keeping your inventory upon death or stopping Creepers from destroying blocks—before you even load into the game. By editing the level.dat file directly, you can change these rules without needing to enable in-game cheats or lose advancement eligibility. This guide walks you through safely updating your world's configuration for both Java and Bedrock editions using our browser-based level.dat Editor.Java & BedrockBeginner5 steps
level.dat & world settingsHow to Permanently Enable Cheats and Change Default Gamemode in level.datUsing the Open to LAN workaround in Java Edition only enables commands temporarily until you exit the world, while Bedrock Edition locks you out of certain settings once a world is created. By directly editing your world's level.dat file, you can permanently toggle cheats, change the default gamemode, and unlock difficulty settings. This guide shows you how to safely modify these global rules directly in your browser without uploading any files.Java & BedrockBeginner6 steps
level.dat & world settingsHow to Enable Experimental Features and Datapacks on an Existing WorldNormally, Minecraft locks experimental features and built-in experimental datapacks behind the world creation screen, forcing you to start a new game to test upcoming mechanics. By directly editing your world's root configuration file, you can unlock these experiments on an existing survival save without losing your progress. Our browser-based level.dat Editor lets you modify these feature flags safely and locally on your device without uploading any files.Java & BedrockIntermediate6 steps
level.dat & world settingsHow to Convert a Hardcore World Back to Survival After DyingDying in a Minecraft Java Edition Hardcore world locks you into Spectator mode, preventing you from interacting with your builds ever again. Fortunately, the game stores your world's rules and your personal gamemode as simple data tags inside a single configuration file. By using our browser-based level.dat Editor, you can safely flip these tags back to normal Survival mode without uploading your files to any server.JavaBeginner6 steps