Skip to content

Rain Environment Code

The environment code for Rain in Valheim, with the env command to force this weather and resetenv to return to the natural cycle.

About

Rain is the standard moderate-intensity rain weather state. It applies wet status to the player and reduces visibility, occurring at 3-7% chance in most biomes.

Overview

Rain is one of Valheim's environment / weather states, identified internally as Rain.

Force the world into this environment with the cheat command env Rain, and return to natural cycling with resetenv.

Environment changes are useful for screenshots, testing biome-specific events, or just resetting bad sailing weather.

Command reference
env
Command reference
resetenv

Commands

Sets the current environment to Rain.

Resets the environment to its natural state.

More Environments

Creature spawn conditions

Full reference

2 entries

Biome & terrain

0–10 m altitude · Inside or outside forest

Time & weather
Progression & limits

No required world key

Up to 8 nearby · Groups of 2–4 · 0–2 stars permitted · 30 sec between attempts · 100% attempt chance

Biome & terrain

-1,000–-5 m altitude · Inside or outside forest

Time & weather

Day & night

Progression & limits

No required world key

Up to 1 nearby · Groups of 1 · 0 stars permitted · 16 min 40 sec between attempts · 5% attempt chance

These are world-spawn rules. Raids and location spawners have separate rules on their own pages. An interval is an attempt schedule, not a guaranteed respawn timer; valid terrain and local population checks still apply.

Weather effects

Temperature effects can be countered by shelter, clothing, and resistance effects.

Wet weather
Yes
Freezing
No
Cold
At night
Daylight
Always dark
Wind intensity
50%–100% of the game's wind scale
Game data source

The full settings include internal fields and inactive defaults. The sections above explain the values relevant to gameplay.

Download full game settings (JSON)