# How to Configure Events and Raids on Your Valheim Server (/docs/valheim/server-events-and-raids)



Valheim's event system sends waves of enemies to attack player bases. These raids scale with boss progression and can be customized with world modifiers.

How Raids Work [#how-raids-work]

* Raids trigger randomly near players who are close to player-built structures
* The type of raid depends on which bosses have been defeated
* Raids last a few minutes and spawn waves of enemies around the base
* Players must fight off the attackers to end the event early

Raid Types by Progression [#raid-types-by-progression]

| Bosses Defeated | Possible Raids                  |
| --------------- | ------------------------------- |
| None            | Boar rush, Neck attack          |
| Eikthyr         | Greydwarf attack                |
| The Elder       | Troll attack, Skeleton surprise |
| Bonemass        | Draugr army, Blob attack        |
| Moder           | Drake raid                      |
| Yagluth         | Fuling raid, Goblin army        |

Configure Raid Frequency [#configure-raid-frequency]

Via Panel [#via-panel]

<div className="fd-steps">
  <div className="fd-step">
    Go to Startup [#1-go-to-startup]

    In the sidebar, click **Startup**.
  </div>

  <div className="fd-step">
    Set the Raids modifier [#2-set-the-raids-modifier]

    Find the **Raids** world modifier and select your preference:

    | Value       | Effect                        |
    | ----------- | ----------------------------- |
    | None        | Raids are completely disabled |
    | Much Less   | Very rare raids               |
    | Less        | Fewer raids than normal       |
    | *(default)* | Standard raid frequency       |
    | More        | More frequent raids           |
    | Much More   | Very frequent raids           |
  </div>

  <div className="fd-step">
    Restart your server [#3-restart-your-server]
  </div>
</div>

Via Console [#via-console]

As admin, open the console (F5) and type:

```
setworldmodifier raids none
save
```

Disable Raids Entirely [#disable-raids-entirely]

For building-focused or casual servers:

Set the raids modifier to **None** in **Startup**, or use the console:

```
setworldmodifier raids none
save
```

> 💡 **Tip:** The `hammer` difficulty preset disables raids and enables no-build-cost mode, making it ideal for pure building servers.

Player Events Key [#player-events-key]

The `playerevents` set key makes events only trigger when players are near. This means raids only happen when someone is actively at their base, not when they're exploring.

Enable via startup parameter:

```
-setkey playerevents
```

Base Defense Tips [#base-defense-tips]

For servers that keep raids enabled:

* **Build walls** — surround your base with stake walls or stone walls
* **Dig trenches** — enemies can't cross deep trenches easily
* **Light the area** — torches and fires keep the area visible at night
* **Workbench coverage** — workbenches prevent enemy spawns within their radius
* **Ward placement** — wards protect against other players but not raid mobs

Raid-Focused Server [#raid-focused-server]

For servers that want more combat challenge:

```
setworldmodifier raids muchmore
setworldmodifier combat hard
save
```

This creates a base defense experience where players need strong fortifications to survive.

Related Guides [#related-guides]

See also: [World Modifiers](/docs/valheim/world-modifiers) | [Change Difficulty](/docs/valheim/difficulty-presets) | [Server Startup Parameters](/docs/valheim/server-launch-parameters)

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