-20% Code FIRSTSERVER takes 20% off your first invoice
Gamehost

Mods on a Valheim server

How BepInEx loads Valheim mods, where the files go on the server, which mods players need too and what to check when mods do not load.

Last updated: ·3 min read

Short answer

Valheim mods are loaded by BepInEx. On the server you turn it on in the panel, in the Mods tab, and then drop the mods into the BepInEx/plugins folder. Players need the same mods in the same versions, otherwise they cannot join or they see a different world than everyone else.

After turning mods on, restart the server. The console should show lines with BepInEx and Chainloader started, and the server reports itself as modded.

How Valheim mods work

The game has no mod system of its own. BepInEx hooks into the game process at startup and loads the plugins from the plugins folder. That is why uploading mod files does nothing while the server starts without BepInEx, and why the panel has a separate switch for it.

Many mods depend on the Jotunn library. It is not a mod by itself but a layer other mods build on. If the list of mods in the console is shorter than it should be, a missing Jotunn is the most common reason.

Turning mods on

  1. In the server menu, open the Valheim category and go to the Mods tab.
  2. On the Mods (BepInEx) card, turn mods on. The panel installs BepInExPack in its Linux version and sets the server to start with BepInEx.
  3. Restart the server and look for BepInEx in the console.

Turning mods off brings back the normal start. Restart the server after every change.

Uploading BepInEx by hand does not replace the switch: on our servers BepInEx only loads through the start command that the panel sets.

Uploading mods

  1. Stop the server.
  2. Upload the mod into BepInEx/plugins in Files or over SFTP. Most mods are a single .dll file or a folder with one inside.
  3. Start the server and check the console. Every loaded mod prints its name and version there.

Mod config files appear in BepInEx/config after the first start. That is where you change settings, not in the mod file itself.

Which mods go on the server and which in the game

Type of modServerPlayer
New items, creatures, biomesyesyes
Changes to world rules, for example damageyesusually yes
Interface, map, inventory sortingnoyes
Libraries such as Jotunnyesyes

The rule is simple: if a mod changes what exists in the world, it has to be on both sides. If it only changes what you see on your screen, the player's copy is enough.

Why mods do not work

  • Mods are not turned on. There is not a single BepInEx line in the console and the game lists the server as unmodded.
  • The BepInEx folder was copied from a Windows PC. That does not work: the server needs the Linux version, which the panel installs when you turn mods on. The plugin .dll files themselves work on both.
  • Version mismatch. A mod built for an older game version will not load after a Valheim update. The console prints an error next to the mod name.
  • A missing library. Most often Jotunn, sometimes another dependency listed on the mod page.
  • Players have different versions. Server and players need the same set. Some mods block joining outright when versions differ.

Game updates can break mods overnight. In a bigger group, agree that one person checks first and the others update after.

FAQ

Do players need the same mods as the server? Mods that change the world, yes, ideally in the same versions. Mods that only affect the interface are enough on the player's side.

Where do mod files go on the server? Into BepInEx/plugins. Mod settings appear in BepInEx/config after the first start.

Why does the server show up as unmodded? Usually because mods are not turned on in the Mods tab or the server was not restarted after the change. The console then has no BepInEx line at all.

Can I remove mods without losing the world? Yes, but items and buildings added by mods disappear from the world. Take a backup first.

More about running Valheim with us: Valheim. Want a server for your modpack? See Valheim server hosting.

Still stuck?Write to us on Discord or in the Help centre in your panel. Ask on Discord