MonsterFallDamage

版本 v1.1.0·更新於 2026-09-26

Monsters and players take fall damage with a shared configurable formula. Set fall height threshold, damage per interval, and damage cap freely.

模組介紹 作者原文

MonsterFallDamage

Monsters — and optionally the player — now take fall damage with a fully configurable formula.

By default the settings match Valheim's vanilla player values, but you can freely tune or remove the damage cap.

Features

  • All monsters take fall damage on landing
  • Player fall damage now uses the same configurable formula (toggle via Apply To Player)
  • Same formula as vanilla player by default
  • Dead monsters are safely ignored
  • Multiplayer-safe (only the network owner calculates damage)
  • Compatible with BepInEx Configuration Manager for in-game adjustments
  • Natural movement is not punished: height gained from a creature's own jump is ignored, and flying creatures (e.g. Moder) take no damage when landing
  • Slimes (all Blob variants) are immune to fall damage
  • Optional debug log for checking each landing (off by default)

Configuration

Located at: BepInEx/config/com.mods.monsterfallDamage.cfg

| Setting | Default | Description |

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

| Apply To Player | true | Apply this formula to the player as well (overrides Valheim default) |

| Min Fall Height (m) | 4 | Falls below this height deal no damage |

| Damage Interval (m) | 16 | Damage added for every X meters fallen above the minimum |

| Damage Per Interval | 100 | Damage dealt per interval |

| Max Damage (0 for unlimited) | 100 | Cap on fall damage. 0 means no limit |

Default formula (same as player):

damage = (fallHeight - 4) / 16 × 100, capped at 100

Example — harsher setting (100 dmg per 6.5m, no cap):

Min Fall Height: 4 / Damage Interval: 6.5 / Damage Per Interval: 100 / Max Damage: 0

Fall Exemption

| Setting | Default | Description |

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

| IgnoreJumpAscent | true | Height gained by a creature's own jump is not counted. Hopping on flat ground deals no damage; jumping off a cliff counts only the drop below the take-off point |

| IgnoreFlyingLandings | true | Flying creatures take no fall damage from their flight altitude, including a short grace period after they land |

| FlyingLandingGraceSeconds | 3 | Grace period (seconds) after a flying creature lands |

| ExemptPrefabPrefixes | Blob | Creatures whose prefab name starts with one of these prefixes (comma-separated, case-insensitive) never take fall damage |

Debug

| Setting | Default | Description |

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

| EnableDebugLog | false | Logs every landing (height, exemption reason, damage) to the BepInEx log |

Installation

  • Install BepInExPack Valheim
  • Drop MonsterFallDamagePlugin.dll into BepInEx/plugins/
  • Launch the game — config file is auto-generated on first run

Compatibility

  • Valheim (latest)
  • Works alongside other mods that add custom monsters
  • No known conflicts

Changelog

1.1.0

  • New: Natural landings are no longer punished
  • Jumps: height gained by a creature's own jump is not counted — hopping on flat ground (e.g. Blobs) deals no damage, and jumping off a cliff only counts the drop below the take-off point
  • Flying creatures (e.g. Moder): no fall damage from flight altitude, plus a short grace period after landing
  • New: Slimes (all Blob variants) are now immune to fall damage — configurable via ExemptPrefabPrefixes
  • Changed: Landing is now detected only at the moment a creature goes from airborne to grounded
  • New: EnableDebugLog option (default: false)
  • Existing settings and the damage formula are unchanged

1.0.5

  • New: Apply To Player config option (default: true) — the player now uses the same configurable fall damage formula instead of the hardcoded Valheim default. Set to false to restore vanilla player behavior.

1.0.4

  • Bug Fix: The plugin was completely non-functional since release. The config key Max Damage (0 = unlimited) contained an illegal character (=), which caused BepInEx to throw an ArgumentException on startup and abort plugin initialization. As a result, no fall damage was ever applied to monsters. Fixed by renaming the key to Max Damage (0 for unlimited).

1.0.1

  • Con

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
MonsterFallDamage-1.1.0.zip
檔案大小
81.2 KiB