ProgressiveSerpentSpawner

版本 v1.0.0·更新於 2026-10-06

Makes Sea Serpents spawn more often as your world progresses. Each boss defeated raises the vanilla spawn chance, up to 100% by default. Fully configurable.

模組介紹 作者原文

Progressive Serpent Spawner

English | Português

English

Sea Serpents are one of the rarest encounters in Valheim. In vanilla they have only a 5% chance to spawn, and that roll happens roughly once every 1000 seconds per ocean zone. Many players finish the game without ever seeing one.

Progressive Serpent Spawner makes the ocean far more dangerous as your world progresses. Every boss defeated raises the serpent spawn chance, and by default it reaches 100% after the 4th boss. Want them rarer? Every value is configurable.

How it works

  • The mod reads the vanilla serpent spawn chance directly from the game. It doesn't hardcode values, so it keeps working if the game changes them.
  • All vanilla spawn conditions stay exactly the same: ocean biome, night or rain/thunderstorm, spawn interval, and max of 1 serpent.
  • Progression is counted with the world's global keys (defeated_eikthyr, defeated_gdking, etc.). These are synced by the server, so everyone shares the same progression.
  • The chance is recalculated automatically a few seconds after a boss dies. No restart needed.

Formula:

final chance = base × (1 + BonusPerBoss × bosses defeated)

The result is clamped between the vanilla base and MaxChance.

Default progression

| Bosses defeated | 0 | 1 | 2 | 3 | 4+ |

|---|---|---|---|---|---|

| Spawn chance | 5% | 30% | 55% | 80% | 100% |

Even at 100%, vanilla limits still apply: one roll every ~1000s per ocean zone, only at night or during rain/thunderstorm, and max 1 serpent at a time.

Configuration

The config file is created at BepInEx/config/ProgressiveSerpentSpawner.cfg after the first launch.

| Setting | Default | Description |

|---|---|---|

| Enabled | true | Turns the spawn adjustment on or off. |

| TargetPrefabs | Serpent | Comma-separated list of creature prefabs affected by the mod. |

| BossKeys | all 7 vanilla bosses | Global keys that count as progression. Each key present adds +1 boss. |

| BonusPerBoss | 5 | Multiplier added per boss defeated (0 to 5). 5 with 1 boss = base × 6. |

| MaxChance | 100 | Hard cap for the spawn chance (0 to 100%). |

| BaseChanceOverride | -1 | If >= 0, ignores the vanilla chance and uses this value (%) as base. -1 = use vanilla. |

| VerboseLog | true | Logs the serpent spawn data and every recalculation. |

Tuning tips (for rarer serpents)

  • Rare: BonusPerBoss = 0.35, MaxChance = 20 (ends at ~17% with 7 bosses)
  • Very rare: BonusPerBoss = 0.25, MaxChance = 15 (ends at ~13.75%)

Multiplayer

  • Install the mod on the server and all clients.
  • In Valheim, spawns are handled by whoever owns the zone, which is usually a player. Keep the same config on everyone so spawn rates are consistent.
  • Boss progression comes from the server's global keys, so it's always shared.

Testing

With devcommands enabled:

listkeys

setkey defeated_eikthyr

removekey defeated_eikthyr

Check BepInEx/LogOutput.log for the [Registro] and [Recalc] lines to see the current spawn chance.

Compatibility

  • Works with vanilla spawn data.
  • Mods that fully replace world spawn tables (e.g. Spawn That, Expand World Spawns) may override or conflict with the serpent spawn entries. If you use one of them, configure serpent spawns there instead.

Support

Found a bug or have a suggestion? Reach me on Discord: Padilha

If you enjoy the mod and want to support development:

Donate via PayPal

Português

As Serpentes Marinhas são um dos encontros mais raros do Valheim. No vanilla elas têm só 5% de chance de spawnar, e essa rolagem acontece mais ou menos uma vez a cada 1000 segundos por zona de oceano. Muita gente termina o jogo sem nunca ver uma.

O Progressive Serpent Spawner deixa o oceano bem mais perigoso conforme o mundo progride. Cada boss derrotado aumenta a chance de spawn da serpente e, por padrão, ela chega a 100% depois do 4º boss. Quer elas mais raras? Todos os valores são configuráveis.

Como funciona

  • O mod lê a chance de spawn vanilla da serpente direto do jogo. Nada é fixo no código, então continua funcionando se o jogo

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
ProgressiveSerpentSpawner-1.0.0.zip
檔案大小
126.4 KiB