CraftFromContainersEvolved

版本 v1.1.2·更新於 2026-10-05

WIP: Craft, build, smelt and cook using resources from nearby containers, with owner-strict, ward-aware access rules and server-enforced policy.

模組介紹 作者原文

Craft From Containers Evolved

by KodeMan

Work in progress: this release has not been fully play-tested yet. Expect rough edges and please report anything you find on Discord.

Craft, build and upgrade using the resources in nearby containers - without letting other players turn your storage into their personal warehouse.

This is an independent reimplementation of the classic "craft from containers" idea for Valheim 1.0 with a security model designed for shared worlds: your chests only work for the people you actually share them with, and servers can enforce the rules.

What it does

  • Use resources from nearby containers when crafting, upgrading and building.
  • Add ore or wood, fuel, food and ammo to stations from nearby containers: smelters, kilns, blast furnaces, cooking stations, fires, torches and ballista turrets. Stations use everything they normally accept - a kiln burns corewood and finewood too.
  • The crafting UI shows the combined amount available in your inventory plus allowed containers, for example 87/40.
  • Counters turn amber when a resource is only available in containers, red when it is missing entirely, and white when your inventory alone is enough.
  • Containers in range are used automatically - no extra slots, tabs or menus.
  • Pull order defaults to the closest container first, and an optional "leave one" rule keeps a single item in every stack (recipes that would need the last item of a stack are treated as not craftable).
  • Container type filters for ships, carts, wood chests, reinforced chests, black metal chests, personal chests and tombstones.
  • Compatible with personal chests and wards: if a container passes the game's own access checks, it can be used according to the active security mode.

No more crafting-table griefing

In shared worlds, a player can build a crafting station next to (or even against the outside wall of) your storage and, with older container-pulling mods, silently craft with your materials. Craft From Containers Evolved stops that by default:

  • Every container must pass the same access rules the game uses when a player opens it. Containers that are in use by someone else, private chests you do not own, and ward-protected containers you have no permission in are never touched.
  • OwnerStrict (default): a container is only used if the piece was created by you. Ownership is the creator id the game stores on every player-placed object, so it survives restarts and does not require a ward. A stranger's workbench next to your chests simply finds nothing, because your chests are not theirs.
  • Wards remain the sharing mechanism: with IncludeWardPermitted enabled, containers inside an enabled ward you have permission in are also used, so teammates can share storage the same way the base game lets them share doors and chests.

Security modes

| Mode | Behaviour |

| --- | --- |

| OwnerStrict (default) | Only containers created by you, optionally plus containers inside a ward you have permission in. |

| WardStrict | The game's own access checks plus: never use containers inside an enabled ward you are not permitted in, even if the container is public. |

| Vanilla | Only mirror the game's own checks: anything you could open manually can be used for crafting. |

Server-enforced policy

Install the mod on the server as well and the server becomes the authority:

  • The server broadcasts its security settings when players spawn and whenever the settings change.
  • Clients can only ever be stricter than the server, never looser. If the server uses OwnerStrict, a client set to Vanilla still gets OwnerStrict behaviour.
  • The pull range is capped by the server value, and container-type ignores are combined so a server can force additional exclusions.
  • Server-side write protection: the server validates every container write and container request. Forged messages from modified clients are dropped before they touch a chest, claimed player ids are verified against the real sender, denials are audit-logged, and

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
CraftFromContainersEvolved-1.1.2.zip
檔案大小
43.5 KiB