Valheim's world modifiers update gave us the power to customize our Viking journey exactly how we want. While some guides recommend downloading your world files to edit them locally, the absolute easiest and fastest way to tweak these settings is directly in-game using admin commands.
Let us dive into the console commands you need to change your server's difficulty, resource rates, and death penalties on the fly.
You must be added as an admin on your server to use these commands. If you have not set this up yet, start with the guides in Related Guides below.
How To Open The Console (PC vs Xbox)
Depending on what platform you are playing on, accessing the command input box is a slightly different process:
-console in the game's properties).Changing Your World Preset
If you want to apply a sweeping change to all settings at once, open your console and use one of these preset commands:
setworldpreset Normalsetworldpreset Casualsetworldpreset Easysetworldpreset Hardsetworldpreset Hardcoresetworldpreset Immersivesetworldpreset Hammersetworldpreset default
Customizing Individual Modifiers
If you prefer a custom experience, you can mix and match the modifiers below to get things just right.
Combat Difficulty
setworldmodifier Combat veryeasysetworldmodifier Combat easysetworldmodifier Combat hardsetworldmodifier Combat veryhardDeath Penalty
setworldmodifier DeathPenalty casualsetworldmodifier DeathPenalty veryeasysetworldmodifier DeathPenalty easysetworldmodifier DeathPenalty hardsetworldmodifier DeathPenalty hardcoreResource Drop Rates
setworldmodifier Resources muchlesssetworldmodifier Resources lesssetworldmodifier Resources moresetworldmodifier Resources muchmoresetworldmodifier Resources mostBase Raids
setworldmodifier Raids nonesetworldmodifier Raids muchlesssetworldmodifier Raids lesssetworldmodifier Raids moresetworldmodifier Raids muchmorePortal Restrictions
setworldmodifier Portals casualsetworldmodifier Portals hardsetworldmodifier Portals veryhardToggles and Numeric Values
You can turn specific mechanics on or off using the setkey and removekey commands:
setkey nobuildcost / removekey nobuildcostsetkey playerevents / removekey playereventssetkey passivemobs / removekey passivemobssetkey nomap / removekey nomapsetkey noportals / removekey noportalsYou can also adjust numeric values for finer control. Keep in mind that 100 is the default vanilla value:
setkey PlayerDamage 150setkey EnemyDamage 75setkey EnemyLevelUpRate 200setkey EventRate 50Saving Your Changes
After you have set all your desired modifiers, do not forget to force a server save so you do not lose your changes! Just type:
Related Guides
Turn on the console with the -console launch option before typing commands.
🛠️ Troubleshooting Modifiers
Once saved, your new modifiers will be locked in for your world. If anything feels off, you can always open the console and tweak it again.
Still stuck?
Our team is happy to help. Open a ticket through the live chat button in the bottom-right corner of our website.