Are there any mods to stop base raids and night attacks in Valheim?

Short answer

Raids and night spawns are two separate systems, which is why switching off one leaves the other. For raid events, the kind announced by a message like "The ground is shaking", set the Raids world modifier to none or use Custom Raids. The ordinary monsters that wander in at night come from the world spawners, and Spawn That is the mod that configures those.

Search this question →

Mods that do this

Custom_Raids

ASharpPen
Last seen on Ashlands

Customize raid events, override existing, extend with your own raids.

⬇ 523K Downloads

Spawn_That

ASharpPen
Last seen on Ashlands

Advanced tool for customizing mob spawners throughout the world with configuration files.

⬇ 764K Downloads

Expand_World_Data

JereKuusela

Allows adding new biomes, changing world generation, and configuring spawns, events, and drops.

⬇ 355K Downloads

The details

Try the world modifier before anything else. Raids is one of Valheim's world modifiers, and setting it to none stops raid events in that world without installing anything.

Custom Raids gives you finer control. Set EventTriggerChance=0 to stop raids firing, or RemoveAllExistingRaids=true to remove the raid list entirely. If you only want fewer raids, it can lower their frequency, override a single raid so you disable just the trolls, or add raids of your own. It ships with two extra end-game raids, Ragnarok and Deathsquitoseason, both off by default.

Custom Raids usually needs to be on the server and every client. The host decides when a raid starts, and the client that owns the area spawns the monsters. If all you want is no raids, the server-only install is enough, because raid activation happens there. From v1.2.0 clients use the server's loaded config, so you can keep a different setup for single player.

Spawn That is for night attacks. It configures the world spawners: spawn rates per creature, which biome and time of day each creature appears in, and the spawners inside camps, villages and dungeons. It can also dump the game's current spawn templates to files in its own format, which is the easiest way to see what the world is actually sending at you before you change anything. Install it on both server and clients; clients on a server use the server's config.

Expand World Data is the heavier option. It covers world generation as well as spawns, events and drops, needs to be on all clients and the server, and its author's advice is to back up your world before changing anything. Its older companion, Expand World Events, is now deprecated and only a compatibility shim, because events moved into Expand World Data v1.73.

Turning everything to zero leaves a world where the only danger is what you go looking for. Some groups want that. If you're not sure, lower raid frequency first and see how it feels.

New to mods? Read the install & configuration guide. Read the full install & configuration guide →

Related questions

Can you turn off raids without mods in Valheim?
Yes. Set the Raids world modifier to none. Use Custom Raids if you want to keep some raids and remove others.
Do enemies still spawn at night if I disable raids?
Yes. Night spawns come from the world spawners, which raid settings don't touch. Spawn That configures those by creature, biome and time of day.
Does everyone need the raid mod installed?
For most Custom Raids features, yes. Turning raids off completely is the exception and works with the mod on the server only.

More questions like this