CraftFromContainers
Craft and build from shared chests; supply smelters and stone ovens, and refuel fires and lights. Cached counts, coordinated multiplayer access and configurable kiln inputs.
模組介紹 作者原文
Craft From Containers
Created by the friendly_neighbor team · Version: 0.1.4
Discord — friendly_neighbor: support, feedback and updates
Version 0.1.4 refreshes craftable recipes when nearby chest resources change and refuels stone ovens with wood from accessible chests.
Craft, upgrade items, build, supply smelters and charcoal kilns, and refuel fires and lights with materials from nearby shared chests. Materials in your own inventory are used first; the remaining materials can come directly from accessible containers.
English
Compatibility and validation
Version 0.1.4 was built against Valheim 1.0.15 and BepInEx 5.4.23.5. Automated fuel checks and static game API checks passed; the new behavior still needs an in-game check.
Features
- Crafting, item upgrades, building, smelter ore/fuel and charcoal kiln inputs use nearby resources.
- An optional allowed-resource list protects rare wood from charcoal production. It applies to backpack and chest resources, including explicit item use on the kiln.
- Campfires, hearths, torches and lamps using Fireplace, and stone ovens using CookingStation, can take their native fuel from accessible chests through the usual refuel action. Toggling a light does not consume resources. Food inputs, fermenters and other arbitrary interfaces are not supported.
- Resource counts are cached by item name, quality and world level. Inventory changes update the affected container; nearby containers and remote changes are refreshed at a configurable interval.
- Recipe checks reuse the cache, without repeated physics searches through the surrounding base. Actual actions select containers holding the required materials.
- Shared chests remain shared. Access is coordinated temporarily when materials are consumed, including concurrent requests from other players.
- Private-container permissions and wards are respected. Containers marked in use by the game, graves and temporary containers that destroy themselves when empty are excluded from crafting sources.
- Recipe requirements can show the required and available amounts. Repair keeps its normal game behavior and reuses the cached resource display.
Installation and co-op
- Disable other mods that provide overlapping crafting or resource consumption from chests to avoid conflicts.
- Install this package and its BepInEx dependency with your mod manager. For manual installation, copy BepInEx/plugins/CraftFromContainers/CraftFromContainers.dll into the matching folder of your game or mod profile.
- The host and every joining player must install the same version. A dedicated server is not required. If you choose to use a dedicated server, install the same version there too. Sessions mixing players with and without this mod are unsupported.
- Start the game once to generate BepInEx/config/local.craftfromcontainers.cfg. Use the same search radius for all participants.
Chest access in 0.1.2
Normal chest opening has no custom cooldown and does not require the player to have placed the chest or opened it last. MultiUserChest remains responsible for simultaneous opening; its successful open response is no longer held until ownership transfers. Ordinary interaction takes priority over pending crafting, which can be retried if interrupted. Normal private-chest permissions and wards still apply.
Update the host and every player to the same version and restart the game. The optional compatibility adapter targets MultiUserChest 0.6.2.
Configuration
| Section / setting | Default | Meaning |
| --- | --- | --- |
| General / SearchRadius | 40 | Container search radius in metres; range 1–100 |
| Performance / RefreshInterval | 0.5 | Seconds between proximity, access and remote-inventory checks; range 0.1–5 |
| Interface / ShowAvailable | true | Show required/available material amounts |
| Refueling / KilnAllowedResources | * | Allowed inputs for charcoal recipes producing Coal; comma-separated prefab IDs |
| Diagnostics / Enabled | false | Write cache counters to the
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: