CraftingStorageLink

版本 v1.5.1·更新於 2026-09-13

BepInEx-only Valheim 1.0 crafting, upgrading, and Hammer building from nearby player-accessible storage linked to the required crafting station.

模組介紹 作者原文

CraftingStorageLink 1.5.1 — BepInEx-only build

This revision removes the Jötunn dependency completely.

Dependencies

The only framework you install is BepInExPack for Valheim 5.4.2350+.

CraftingStorageLink uses HarmonyLib for runtime patches, but you do not install Harmony separately. The normal Valheim BepInEx pack already contains BepInEx/core/0Harmony.dll, and the project references that bundled copy.

There is no Jötunn dependency and no Jötunn DLL is expected anywhere.

Important: server-only is not enough for this feature

The dedicated server should run CraftingStorageLink, but every player client also needs BepInEx and the same CraftingStorageLink.dll.

Valheim performs crafting-recipe and Hammer-piece requirement checks in the player's game process. A completely unmodded client will decide that the player lacks the materials before a server-side plugin can make nearby chest contents count. Trying to fake this only on the server would be unreliable and risks inventory desync.

Your existing server-side achievement/QoL-enabler can stay exactly as it is. CraftingStorageLink does not modify achievements and does not depend on that mod.

1.5.1 reinforced-chest reliability fix

Version 1.5.1 specifically hardens Reinforced Chest / iron chest (piece_chest) handling after reports that small wooden chests worked while reinforced chests intermittently did not. Container discovery remains generic rather than hard-coded to one chest type, but the player-built check now falls back to the creator stored on the container ZDO, ZNetView lookup has hierarchy fallbacks, and linked counts use the live inventory before attempting a private Load.

With SkipInUseContainers=true, a container opened by this local player remains eligible because CraftingStorageLink is operating on the same live inventory object shown in the chest UI. A container being used remotely is still excluded. Resource pulls also explicitly save the container after removal as a compatibility backstop.

For a focused test, put Stone or Wood only in a Reinforced Chest within the configured radius, leave the player's inventory empty, and test both crafting and Hammer placement with the chest closed and then locally open. Both should count the stored materials.

1.5.0 compatibility / Hammer UI changes

Version 1.5.0 keeps the same normal CraftingStorageLink gameplay rules, but changes how temporary crafting/build contexts are tracked internally. Contexts are now nested/re-entrant and exception-safe so mods such as Infinity Hammer and ValheimBuildCamera can call Valheim build methods without clearing CraftingStorageLink's outer operation.

The Hammer HUD is now patched at Hud.SetupPieceInfo as well. This gives the build-resource display the same linked-storage context used by the actual requirement check, so a requirement should not blink red merely because its materials are in an eligible nearby chest.

The 1.4.0 Workbench/Campfire fix remains: stationless Hammer pieces link around the player/build location.

Solo behavior: no extra mod is required and the intended resource rules are unchanged. The same DLL works by itself with BepInEx. The visible difference should only be more reliable linked-storage detection and corrected Hammer resource colors/counts.

What 1.5.1 does

  • Crafting and upgrading can count/pull materials from nearby eligible storage.
  • Hammer/build-tool placement can count/pull materials from nearby eligible storage.
  • Player inventory is paid first; linked storage supplies only the shortfall.
  • Storage is linked around the required crafting station (default 20 m); stationless Hammer pieces link around the player/build position.
  • Vanilla workbench/forge/etc. requirements are still enforced.
  • World loot, tombstones, carts and ships are excluded by default.
  • Container access/ward rules are respected by default.
  • With SkipInUseContainers=true, containers in use by another player are excluded; the local player's currently open container remains eligible.

-

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
CraftingStorageLink-1.5.1.zip
檔案大小
113.5 KiB