# Valheim World Modifiers Reference (/docs/valheim/world-modifiers)



import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Step, Steps } from 'fumadocs-ui/components/steps';

World Modifiers let you fine-tune your Valheim server's difficulty across five independent categories. Set them from the panel **Startup** variables or with in-game console commands.

All World Modifiers [#all-world-modifiers]

Combat [#combat]

Controls enemy health, damage, and spawn rates.

| Value       | Effect                                     |
| ----------- | ------------------------------------------ |
| `veryeasy`  | Enemies deal less damage, have less health |
| `easy`      | Slightly easier combat                     |
| *(default)* | Standard combat                            |
| `hard`      | Enemies are tougher and hit harder         |
| `veryhard`  | Significantly more challenging combat      |

Death Penalty [#death-penalty]

Controls how much skill XP you lose on death.

| Value       | Effect                                     |
| ----------- | ------------------------------------------ |
| `casual`    | No skill loss on death                     |
| `veryeasy`  | Minimal skill loss                         |
| `easy`      | Reduced skill loss                         |
| *(default)* | Standard skill loss                        |
| `hard`      | Increased skill loss                       |
| `hardcore`  | Permadeath — character is deleted on death |

Resources [#resources]

Controls how much you gather from trees, rocks, and other resource nodes.

| Value       | Effect                    |
| ----------- | ------------------------- |
| `muchless`  | Gather much less per node |
| `less`      | Gather slightly less      |
| *(default)* | Standard resource amounts |
| `more`      | Gather more per node      |
| `muchmore`  | Gather much more per node |

Raids [#raids]

Controls how frequently enemy raids attack your base.

| Value       | Effect                  |
| ----------- | ----------------------- |
| `none`      | No raids at all         |
| `muchless`  | Very rare raids         |
| `less`      | Less frequent raids     |
| *(default)* | Standard raid frequency |
| `more`      | More frequent raids     |
| `muchmore`  | Very frequent raids     |

Portals [#portals]

Controls what items can be transported through portals.

| Value       | Effect                                            |
| ----------- | ------------------------------------------------- |
| `casual`    | All items can go through portals (including ores) |
| *(default)* | Standard restrictions (no ores or metals)         |
| `hard`      | More items are restricted                         |
| `veryhard`  | Most items are restricted                         |

Set Modifiers [#set-modifiers]

<Tabs items={['Via Panel Startup (Recommended)', 'Via In-Game Console']}>
  <Tab value="Via Panel Startup (Recommended)">
    <Steps>
      <Step>
        Stop the server [#stop-the-server]

        In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop your server.
      </Step>

      <Step>
        Open Startup [#open-startup]

        Click **Startup** in the sidebar.
      </Step>

      <Step>
        Adjust the modifier dropdowns [#adjust-the-modifier-dropdowns]

        Find the World Modifier variables and select your preferred values.
      </Step>

      <Step>
        Start the server [#start-the-server]

        Start from **Console**.
      </Step>
    </Steps>
  </Tab>

  <Tab value="Via In-Game Console">
    <Steps>
      <Step>
        Connect as admin [#connect-as-admin]

        Join the server with admin privileges. See [Admin Setup](/docs/valheim/admin-setup).
      </Step>

      <Step>
        Open the console [#open-the-console]

        Press **F5** in-game.
      </Step>

      <Step>
        Set modifiers [#set-modifiers-1]

        ```
        setworldmodifier combat hard
        setworldmodifier deathpenalty casual
        setworldmodifier resources more
        setworldmodifier raids less
        setworldmodifier portals casual
        ```
      </Step>

      <Step>
        Save the world [#save-the-world]

        ```
        save
        ```
      </Step>
    </Steps>
  </Tab>
</Tabs>

Difficulty Presets [#difficulty-presets]

Presets apply a combination of modifiers at once:

| Preset      | Combat    | Death    | Resources | Raids  | Portals   |
| ----------- | --------- | -------- | --------- | ------ | --------- |
| `default`   | Normal    | Normal   | Normal    | Normal | Normal    |
| `easy`      | Easy      | Easy     | More      | Less   | Normal    |
| `hard`      | Hard      | Hard     | Less      | More   | Hard      |
| `hardcore`  | Very Hard | Hardcore | Less      | More   | Very Hard |
| `casual`    | Very Easy | Casual   | Much More | None   | Casual    |
| `hammer`    | Normal    | Casual   | Much More | None   | Casual    |
| `immersive` | Hard      | Hard     | Less      | More   | Very Hard |

Apply a preset:

```
setworldpreset hardcore
save
```

Reset World Modifiers [#reset-world-modifiers]

If modifiers are stuck or not working:

```
setworldpreset default
save
```

This clears all modifiers back to default values.

> ⚠️ **Warning:** Back up your world before changing modifiers. Some changes (like switching to `hardcore` death penalty) can have permanent effects on player characters.

Related Guides [#related-guides]

See also: [Change Difficulty](/docs/valheim/difficulty-presets) | [Console Commands](/docs/valheim/console-commands) | [Server Events and Raids](/docs/valheim/server-events-and-raids)

If you need help, join our [Discord](https://discord.xgamingserver.com/).
