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's dive into the console commands you need to change your server's difficulty, resource rates, and death penalties on the fly.
Important Note: You must be added as an admin on your server and have the console enabled to use these commands. If you haven't set this up yet, check out our guide on How to Enable and Use the Console in Valheim.
Changing Your World Preset
If you want to apply a sweeping change to all settings at once, open your console by pressing F5 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 veryhard
Death Penalty
setworldmodifier DeathPenalty casualsetworldmodifier DeathPenalty veryeasysetworldmodifier DeathPenalty easysetworldmodifier DeathPenalty hardsetworldmodifier DeathPenalty hardcore
Resource Drop Rates
setworldmodifier Resources muchlesssetworldmodifier Resources lesssetworldmodifier Resources moresetworldmodifier Resources muchmoresetworldmodifier Resources most
Base Raids
setworldmodifier Raids nonesetworldmodifier Raids muchlesssetworldmodifier Raids lesssetworldmodifier Raids moresetworldmodifier Raids muchmore
Portal Restrictions
setworldmodifier Portals casualsetworldmodifier Portals hardsetworldmodifier Portals veryhard
Toggles 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 noportals
You 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 50
Saving Your Changes
After you have set all your desired modifiers, do not forget to force a server save so you don't lose your changes! Just type:
save
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.