DeathMessage

版本 v0.1.3·更新於 2026-10-06

Says what killed a player and where: in everyone's chat, on screen and in Discord (via DiscordConnector). Install in the players' games and on the server.

截圖 共 2 張

模組介紹 作者原文

DeathMessage

Says what killed a player, and where - in everyone's chat, on everyone's screen and in Discord.

Vanilla Valheim tells nobody when a player dies, and a Discord bridge can only say "Astrid has

died." DeathMessage says "Astrid was killed by Troll ★1 at (120, 34, -560)": fell, drowned,

burned, poisoned by a Blob, crushed by a tree, hit by another player - whatever it was.

One DLL, for the players' games and the server.

Screenshots

In the chat box of every player, with the mod or without:

In Discord, through DiscordConnector, with the cause and the place of death:

What happens when you die

  • Your game works out the cause from the last hits your character took: who or what, the

damage by type, and what was left of your health.

  • You see it in the middle of the screen: "Killed by Troll ★1 — last hit: 42 blunt".
  • Your character shouts it, so it is an ordinary chat line for every player on the server:

"Astrid: was killed by Troll ★1 at (120, 34, -560)".

  • The server shows every other player "Astrid was killed by Troll ★1 at (120, 34, -560)."

in the top-left message feed, which is also kept in the Compendium's message log.

  • With DiscordConnector

on the server, Discord gets "Astrid was killed by Troll ★1. Coords: (120, 34, -560)" at

once, in place of "Astrid has died."

  • The death is added to your own history: /deaths in chat lists the last 10, /deaths hits

adds the hits before each. The last 30 are kept in

BepInEx/config/liekos47.deathmessage.deaths.txt.

Also in the mod, both off until you turn them on:

  • A shorter respawn. The game waits a fixed 10 seconds on the death view and then at least

8 more at your bed. Two settings in your own game shorten both.

  • /grave. When the server allows it, pay coins to be taken back to where you last died.

Who installs it

| Installed in | What you get |

|---|---|

| The dying player's game and the server | Everything above |

| The dying player's game only | The on-screen cause, the history, the shout in everyone's chat, the shorter respawn |

| The server only | Nothing yet: only a player's own game knows what hit them |

Players without the mod still read other players' deaths in chat and in the top-left feed.

Their own deaths are announced by nobody and go to Discord as DiscordConnector's usual message.

Install

Needs BepInExPack Valheim.

Install it with a mod manager, or put DeathMessage.dll in BepInEx/plugins/ by hand. It goes

in the game of each player who wants it, and in BepInEx/plugins/ on the dedicated server. DiscordConnector is optional and only belongs on the server.

Configuration

BepInEx/config/liekos47.deathmessage.cfg, written on the first start. The [Client] settings

are read in a player's game, the [Server] settings on the server (or in the game of a player

hosting the world). Changes to the file are picked up within 30 seconds, without a restart.

In a player's game: [Client]

| Setting | Default | |

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

| LocalLog | true | Show the cause in the middle of the screen and keep the history |

| ShoutDeath | true | Shout the cause when you die, so it is in every player's chat |

| ShoutFormat | {cause} at {pos} | What is shouted. The game puts your name in front |

| SendToServer | true | Report your deaths to the server, for its announcement and Discord |

| DeathViewSeconds | 10 | Seconds on the death view before the respawn starts. The game's own is 10, the least is 1 |

| RespawnLoadSeconds | 8 | Least seconds waited at your spawn point. The game's own is 8, the least is 3 |

On the server: [Server]

| Setting | Default | |

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

| Announce | true | Show the other players a message when someone dies |

| AnnounceFormat | {player} {cause} at {pos}. | The message |

| AnnounceWhere | TopLeft | TopLeft = the message feed. Center = across the middle of the screen |

| Discord | true | Put the cause and the place into DiscordConnector's death message |

| DiscordMessage | %PLAYER_NAME% {cause}. Coords: {pos} | Replaces DiscordConnector's "Player

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
DeathMessage-0.1.3.zip
檔案大小
88.3 KiB