CraftFromContainers
Crafting, building and the EpicLoot enchanting table use materials from nearby chests. Adds a -/+/Max craft amount selector and gentler StarLevelSystem per-star loot.
模組介紹 作者原文
Craft From Containers
Crafting stations, the Hammer and the EpicLoot enchanting table can use materials stored in nearby chests.
Built to run alongside a large modpack without fighting other mods over resource consumption, and without
adding any per-frame work on the dedicated server.
Features
- Crafting at any station takes missing ingredients from chests within range (default 20 m around the player).
- Building with the Hammer takes missing materials from chests the same way.
- EpicLoot enchanting table pays runestones, dust and shards from nearby chests, using EpicLoot's official
inventory provider API (API.RegisterInventoryProvider), not a patch.
- Ingredient rows show how much is in chests, e.g. 10 +34, and no longer flash red when the chests cover the cost.
- Craft amount selector: -, +, Min and Max buttons below the Craft button craft up to 100 items with one click
(Ctrl + click = ±10). Built on Valheim's own multi-craft, so chests, skill bonuses and other mods work as usual.
- Gentler per-star loot for StarLevelSystem: each star adds 1/3 of the base drop (3 meat → 4 → 5 → 6).
What you carry is always used first. Only the missing amount comes from chests, nearest chest first.
How it works
Valheim lets only the current owner of a chest change its contents, which is also how vanilla handles opening a chest.
This mod follows the same rule:
- Only chests your game currently owns are counted and used.
- While you have the crafting panel, build mode or the enchanting table open, the mod asks the current owner of
nearby chests to hand them over. The owner refuses if the chest is open, if it used that chest in the last few
seconds, or if that player is crafting or building nearby themselves.
- Right before the game consumes resources, the missing amount is moved into your inventory, and then the game
(and any other mod that changes resource consumption) takes it from there as if you had carried it. If your
inventory has no room, the missing amount is removed directly from the chest instead.
On the dedicated server the mod only answers ownership requests. It does nothing every frame.
What it does not touch
- Chests someone else currently has open.
- Other players' private chests and chests inside a ward you have no access to.
- Tombstones, backpacks, dungeon and world loot containers — by default only player-built containers count.
- Carts and ships (off by default; the server can enable them).
- Equipped items, and items that carry extra data — enchanted EpicLoot gear, socketed items and similar (can be turned off).
Known limitations
- Ingredients with quality levels (for example fish, when ImpactfulSkills ingredient quality is enabled) must be in
your inventory. That mod picks the quality tier by looking only at the player's inventory.
- "Any one ingredient" recipes (m_requireOnlyOneIngredient) need that ingredient in your inventory, because
the game takes it directly instead of going through the normal consumption path.
- With a full inventory the missing amount is taken straight from the chest. If EpicLoot's Lucky Craft then lowers
the cost, the chest portion is still charged in full. With free space, the difference stays in your inventory.
- Two players crafting next to each other: a chest stays with whoever started first; the other player gets it a few
seconds after the first one closes their panel.
- EpicLoot enchant, sacrifice and disenchant tabs only list items in your inventory. This is intentional — exposing
chests there would let a single misclick destroy stored gear.
- No auto-sorting and no automation pieces. This mod only does crafting and building from containers.
Requirements and compatibility
- BepInExPack_Valheim 5.4.2351
- Jotunn 2.30.2
- Must be installed on the server and on every client, with matching major and minor versions. Jotunn enforces this on connect.
The patches were written against the actual game code and account for other mods that hook the same methods,
including Impactful
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: