How to Control the Weather in Valheim
Use env and wind to set Valheim's weather and wind — stop the rain, trigger a thunderstorm, or set a perfect tailwind for sailing.
Valheim's weather has gameplay consequences — rain wets you, wet kills your fire, fire is the only thing keeping the cold off in the Mountains, and so on. If a thunderstorm hits two minutes into a sailing trip and you'd rather not deal with it, the env command sets the local weather to whatever you want. wind does the same for sailing conditions. This guide covers both, plus how to clear them when you're done.
Both require devcommands. See how to enable cheats in Valheim if they don't run.
Set the weather with env
The argument is an environment ID — Valheim's internal name for a weather state. The most common ones:
Stop the rain
Clear skies, sun, no wet effect. Clear environment.
Start the rain
Standard rainstorm — applies the Wet effect and extinguishes outdoor fires. env LightRain is the gentler version.
Trigger a thunderstorm
Lightning, heavier rain, scenic if you're not in a longship. Note the PascalCase — env thunderstorm won't work.
Make it snow
Mountain blizzard. Outside the Mountains, the visuals apply but Frost damage does not (cold immunity is biome-driven, not weather-driven).
Ashland's ash rain
The Ashlands' signature weather — falling ash with fire-damage risk near the ground.
Mistlands mist
Useful for screenshots, painful for navigating. The Wisplight from Wisp clears a 10m bubble around you.
Boss-arena environments
Each boss fight has a custom weather setting that activates when its altar is summoned. You can preview them anywhere:
env Eikthyr— light fog over Meadows.env GDKing— The Elder's dim Black Forest haze.env Bonemass— heavy green swamp fog.env Moder— peak Mountain snowstorm.env GoblinKing— Yagluth's red-tinted Plains sky.env Queen— Mistlands purple haze.
See the full environment ID reference for all 28 codes (including dungeon-interior environments like Crypt and InfectedMine).
Return to normal weather
resetenv cancels whatever env override you set, and lets the game's normal weather cycle take over again. Without this, the override stays until you change biomes or reload the world.
Control wind with wind
- Angle — 0 to 360 degrees.
0is wind blowing from the south,90from the west,180from the north,270from the east. - Intensity — 0 to 1.
0is dead calm,1is full gale.
Perfect tailwind for a sailing trip
If your destination is east of you, set the wind to blow east:
Max intensity from the east → maximum push west.
Stop the wind for building precision
Useful when wind is making particle effects awkward for screenshots, or when you want flag/banner items to hang still.
See the full wind reference for argument notes.
Restore default wind
resetwind hands wind direction and intensity back to the game's natural cycle. Pair with resetenv when you're done with cheat-mode sailing.
Common workflows
Fast sailing run, no surprises
env Clear— kill any active storm.wind [angle] 1— max wind in your travel direction.- Sail. When you arrive:
resetenvandresetwind.
Build a Mountains base without freezing to test
env Clearin the Mountains — drops the snowstorm visuals so you can see what you're placing.- (Weather doesn't disable the Frost effect; you still need frost resistance mead or a Lox cape.)
Cinematic screenshot — boss fog without the boss
gototo the location.env Bonemassfor the heavy swamp atmosphere.tod 0.5for high-noon lighting through the fog.
Gotchas
- env IDs are case-sensitive and PascalCase.
env clearfails;env Clearworks. The IDs with underscores (likeTwilight_Snowstorm) and spaces ("Heath clear") need exact matching. - env overrides one client only. On a multiplayer server, your weather override applies to your local view; other players still see the natural weather.
- Wind effects only matter on water. Land travel doesn't respond to wind speed; setting
wind 0 1only matters if you're sailing or piloting a longship. - Biome changes can reset overrides. Walking from Meadows into Black Forest can re-trigger the natural weather. Reapply if needed.