World modifiers let you adjust the difficulty of your world, for example the strength of enemies, the penalty on death, the amount of resources, the frequency of raids or the rules for portals. The modifiers are stored in the world itself. You can change them directly in-game via the console, or prepare a world locally with the modifiers you want and upload it to your server.
Change modifiers in-game via the console
This way you change the modifiers of your existing world while the server is running. The change takes effect immediately and is stored permanently with the next world save.
-
Become an admin
Add yourself as an admin on your server, see Add Admin. Only admins are allowed to run these commands on the server. -
Enable the console
Enable the developer console in the game settings if it is not active yet. -
Join the server
Connect to your server, see Join Server. -
Enter a command
Open the console withF5, enter one of the following commands and confirm with Enter. Upper and lower case do not matter.
Set a preset
setworldpreset <preset>
The available presets are Normal, Casual, Easy, Hard, Hardcore, Immersive and Hammer. Example:
setworldpreset Hard
A preset replaces all previously set world modifiers.
Change a single modifier
setworldmodifier <modifier> <value>
| Modifier | Meaning | Possible values |
|---|---|---|
Combat |
Combat difficulty | VeryEasy, Easy, Hard, VeryHard |
DeathPenalty |
Penalty on death | Casual, VeryEasy, Easy, Hard, Hardcore |
Resources |
Amount of resources | MuchLess, Less, More, MuchMore, Most |
Raids |
Frequency of raids | None, MuchLess, Less, More, MuchMore |
Portals |
Rules for portals | Casual, Hard, VeryHard |
Example:
setworldmodifier Combat Hard
Reset all modifiers
resetworldkeys
Resets all world modifiers to their defaults.
Prepare and upload a world with modifiers
This way you set the modifiers in the game's world modifiers menu. It also offers switches such as no map or no build cost, which you cannot set individually with setworldpreset and setworldmodifier. The modifiers are stored in the world and applied by your server when it loads the world.
-
Create the world locally
Start Valheim, choose your character and create a new world on the world selection screen, for example namedMyWorld. -
Set the world modifiers
Select the world on the world selection screen and open the world modifiers menu. Choose a preset or adjust the individual modifiers and switches, then confirm your selection. -
Enter the world once
Start the world locally once and leave it again so that all world files are created. -
Upload the world
Upload the world to your server and enter its name in the World Name field, as described in Add Savegame. -
Start the server
Start your server. It loads the world with the selected modifiers.
