ValheimLumberNPC

版本 v1.0.1·更新於 2026-07-29

Friendly lumber trolls for Valheim. Place a homestead, set a work radius, assign chests - they chop, smash logs, collect wood, and store it. Optional replanting. Multiplayer-safe.

截圖 共 5 張

模組介紹 作者原文

Valheim Lumber NPC

Put your logging on autopilot. Place a homestead, set a work radius, assign a few chests — then let a friendly Lumber Troll chop trees, smash logs and stumps, pick up wood, and store it while you get on with raiding, building, and exploring.

Highlights

  • Hands-off logging — chops trees, smashes fallen logs and stumps, collects drops, and deposits wood.
  • You decide the mix — set chop priorities and replant priorities per tree type, filtered to the homestead biome.
  • Optional replanting — after clearing a stump, can plant a sapling from seeds carried in the bag.
  • Storage handled — assigns normal Valheim chests; deposits surplus and pauses when chests are full.
  • Multiplayer-safe — works on local worlds, player-hosted games, and dedicated servers.
  • Simple in-game menu — everything is driven from one panel on the Homestead piece.

| | |

|---|---|

| Version | 1.0.1 |

| Author | Pjanky |

| License | MIT |

| Requires | BepInExPack Valheim + Jötunn |

| Install on | Dedicated server and all clients (same version) |

Install

With r2modman Mod Manager (recommended)

  • Install BepInExPack Valheim and Jötunn.
  • Install Valheim Lumber NPC (Pjanky-ValheimLumberNPC).
  • Use the same mods on the dedicated server and every client.

Manual

  • Install BepInEx for Valheim and Jötunn.
  • Copy ValheimLumberNPC.dll into BepInEx/plugins/ValheimLumberNPC/ on the server and every client.
  • Launch once so the config file is created under BepInEx/config.

The mod adds one hammer build piece: Lumber Homestead.

By default only server admins can place the homestead and open the panel. To let any player manage lumber yards, set AdminOnlyPlacement and AdminOnlyAccess to false (see Configuration).

Quick start

Everything runs from the Lumber Homestead panel — interact with the placed homestead to open it.

  • Place the Homestead where you want logging done. It spawns your first Lumber Troll automatically.
  • Set the work radius on the main page (default 40 m, adjustable 10–100 m).
  • Add storage. Place chests nearby and click Add chest for each.
  • Tune tree priorities under Lumber settings if you want (biome-filtered).

That's it — as long as a player keeps the area loaded, the troll will chop, smash logs/stumps, collect wood, and deposit into your chests. When chests fill up, work pauses until you free space or add another chest, then unpause.

Trolls vanishing when you leave is normal. They are temporary workers, not permanent creatures. Your homestead settings, radius, and chest assignments are saved. When you return, open the panel and click Add Troll if none are present.

How it works

  • The Homestead piece stores persistent data (chests, pause state, work radius, tree priorities) in the world save.
  • Lumber Trolls only work while a player keeps the area loaded — they are summoned workers, not wandering monsters.
  • Work loop: find tree → chop → smash logs → smash stump → (optional replant) → collect wood → deposit.
  • On multiplayer, AI runs on the peer that owns the NPC’s network view, which keeps dedicated servers safe without forcing the headless server to simulate every troll.
  • Talking to a troll toggles pause/resume for that homestead.

Full setup walkthrough

  • Place the Lumber Homestead

Open the hammer, pick Lumber Homestead, and place it near the trees you want cleared (exact facing doesn’t matter). Interact with it to open the panel. The status line shows pause state, troll count, work radius, and chest count.

  • Set the work radius

On the main page under Work area, drag the Work radius slider (10–100 m). Trees outside this circle are ignored.

Tip: MaxWorkRadius in the BepInEx config is a server ceiling, not the homestead’s current radius. Change the radius in the UI. If the config ceiling is stuck at 40, the slider cannot go higher until that config is raised (newer builds auto-correct a ceiling of 40 up to 100).

  • Assign chests (storage)
  • Place normal Valheim chests (or compatible containers) near th

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_ValheimValheimModding-Jotunn

檔案與校驗

檔案名稱
ValheimLumberNPC-1.0.1.zip
檔案大小
273.9 KiB