StartSpawnOnDeath

版本 v1.0.0·更新於 2026-09-11

Server-side Valheim mod that returns only the player who dies to the Sacrificial Stones after respawn while beds remain usable for sleeping. Vanilla clients need no mod.

模組介紹 作者原文

Start Spawn On Death - by: PattPC

A small server-side only Valheim mod for dedicated servers.

When a player dies, Valheim is allowed to perform its normal death and bed-respawn flow. As soon as that player is alive again, the dedicated server returns that player only to the world's Sacrificial Stones / StartTemple.

Clients do not need BepInEx or this mod.

The mod can be used in singleplayer worlds aswell, but is not required for each client in a multiplayer world, only the hosts' server files.

Features

  • Server-side only; vanilla clients can join normally.
  • Only the player who died is teleported.
  • Beds remain fully usable for claiming and sleeping.
  • Normal tombstones, skill loss, item loss, raids, combat, food and progression are untouched.
  • Uses Valheim's existing vanilla player teleport RPC instead of a custom client RPC.
  • Verifies that the player actually reached StartTemple and retries if necessary.
  • Can remember an unfinished death return across disconnects/server restarts.
  • Large centered death-return announcement enabled by default.
  • Optional vanilla chat/shout announcement, disabled by default.

Default announcement:

"{player} died and was returned to the Sacrificial Stones."

Requirements

  • Valheim Dedicated Server
  • BepInExPack for Valheim installed on the server
  • Current Valheim 1.0-compatible BepInExPack

No client-side installation is required.

Installation

mod manager package

Install the package on the dedicated server profile. The package places: "BepInEx/plugins/StartSpawnOnDeath/StartSpawnOnDeath.dll" on the server.

Manual installation

  • Stop the dedicated server.
  • Install BepInExPack for Valheim on the server if needed.
  • Create: BepInEx/plugins/StartSpawnOnDeath/
  • Copy StartSpawnOnDeath.dll into that folder.
  • Start the server.

The config is generated automatically at: "BepInEx/config/startspawnondeath.cfg"

Default configuration

The default presentation is intentionally simple: the larger center-screen announcement is enabled and the smaller chat/shout message is disabled.

[Chat]

BroadcastDeathReturn = false

AnnouncementText = {player} died and was returned to the Sacrificial Stones.

ServerName = Server

[Display]

ShowExtendedHudAnnouncement = true

HudAnnouncementText = {player} died and was returned to the Sacrificial Stones.

HudDurationSeconds = 5

HudRefreshIntervalSeconds = 0.75

The important gameplay defaults are:

[General]

Enabled = true

PollIntervalSeconds = 0.25

RespawnSettleDelaySeconds = 0.50

RetryIntervalSeconds = 1.0

FastRetryCount = 5

SlowRetryIntervalSeconds = 5.0

VerificationRadiusMeters = 12.0

SpawnYOffsetMeters = 1.5

PersistPendingDeaths = true

VerboseLogging = false

If PersistPendingDeaths = true, an internal persistence file is stored as: "BepInEx/config/startspawnondeath.pending.txt"

The file stores a hashed key rather than the raw connection identity.

How it works

The dedicated server watches each connected player's networked character state separately. When a player's character enters the dead state, that peer gets its own pending return-to-spawn latch.

After that same character becomes alive again, the server sends Valheim's built-in RPC_TeleportPlayer specifically to that peer. Other connected players are not targeted.

The server then checks the player's synchronized position. The pending death state is cleared only after the player is verified near StartTemple.

Known limitation

Because this is server-only, the player's local character profile still remembers their bed as its nominal spawn point. A player may therefore briefly begin the normal bed-respawn process before the server moves them to the Sacrificial Stones.

Preventing a bed spawn coordinate from being saved at all would require client-side code, which this mod deliberately avoids.

Compatibility

Initial public release built for the Valheim 1.0 generation of the dedicated server and BepInExPack. Game updates can change Valheim's internal API; if a future update breaks the plu

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
StartSpawnOnDeath-1.0.0.zip
檔案大小
100.3 KiB