Skip to content

Swamprain Environment Code

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

About

SwampRain is the Swamp's constant rain environment. It occurs at 100% chance in the Swamp and combines with the biome's darkness to apply the Wet status nearly always.

Overview

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

Force the world into this environment with the cheat command env SwampRain, 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 Swamprain.

Resets the environment to its natural state.

More Environments

Forced by events

Biome weather association

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
10%–30% 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)