You are viewing a potentially older version of this package. View all versions.
NorCal_Nerds-CraftFromDrawersAndChests-2.2.2 icon

CraftFromDrawersAndChests

Includes MultiUserChest's chest sharing - uninstall MultiUserChest first. Craft and build from nearby chests and drawers, fire arrows from your backpack, fuel stations and plateautems. Every player and the server need it.

Date uploaded a day ago
Version 2.2.2
Download link NorCal_Nerds-CraftFromDrawersAndChests-2.2.2.zip
Downloads 243
Dependency string NorCal_Nerds-CraftFromDrawersAndChests-2.2.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351
ValheimModding-Jotunn-2.30.3 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.3

README

Craft From Drawers And Chests

Craft and build straight out of your storage. This mod lets Valheim's crafting stations, the build hammer and the crafting menu pull their materials from every chest — and every KG Item Drawers drawer — within one range of you, instead of only from your inventory.

In short: CraftFromContainers, but for drawers too.

It also bridges Adventure Backpacks: materials in your equipped backpack count while crafting and building, arrows and bolts fire straight out of it, and a Plateautem can be fuelled from it — none of which the game or those mods do on their own.

Install from Thunderstore: https://thunderstore.io/c/valheim/p/NorCal_Nerds/CraftFromDrawersAndChests/

Features

  • Craft from storage. When you craft, the required materials are pulled from nearby chests and drawers before the recipe is checked and consumed.
  • Build from storage. The build hammer's "do I have the materials?" check and the material consumption both draw from storage.
  • Ctrl-click to pull. Hold the pull key and ctrl-click to move ingredients into your inventory on demand. It brings the recipe's full materials every time — whatever you are already carrying — so you can click twice for the materials for two portals. There's no excuse for sailing to another continent without portal mats again!
  • Station feeding. Fireplaces, smelters, cooking stations and shield generators pull fuel, ore and cooking ingredients from storage. Hold the fill-all key (left shift by default) and use a station to fill it to capacity in one press. Plateautems (erkle64's terrain-flattening totems) are fed the same way: the mod asks the totem which item its current selection consumes — wood, coal, resin or stone — and a held press fills it to the totem's own capacity.
  • One range, both storage kinds. A single range setting (default 10 m, and 0 or less means unlimited, matching CraftFromContainers) applies to chests and drawers alike.
  • Per-storage switch. Flip a chest or drawer off with a hotkey while hovering it, and this mod never pulls from it. The switch lives on the object, so it is shared with everyone and saved with the world.
  • Your backpack counts. With Adventure Backpacks, materials in your equipped backpack count as held while crafting and building — under that mod's own rules, and without moving anything into your inventory to make it work. Only your own backpack is ever counted: another player's is never used, whether you are crafting, building or pulling.
  • Plateautem ↔ Adventure Backpacks bridge. Plateautem counts its fuel in your main inventory only and never asks Adventure Backpacks for your backpack, so a totem with fuel only in the backpack answers "no fuel". While this mod is installed the totem's fuel interaction runs inside Adventure Backpacks' own crafting scope, so your equipped backpack both counts and is debited, exactly as it is for a craft. Neither mod needs configuring for this; it applies only to the Plateautem, not to other third-party stations.
  • Backpack ammunition. Arrows and bolts in your equipped backpack can be fired. Vanilla only looks for ammunition in your inventory and never in the backpack, so a bow with its arrows packed away reports you are out of them. Each shot is spent straight out of the backpack — the stack stays where it is, exactly as Adventure Backpacks pays for a craft — and an ordinary shot from your inventory is untouched.
  • Server-authoritative config. Settings are registered with Jötunn, so the server's values are pushed to clients and non-admins cannot change them.

Verified compatible mods

Tested in game with this version, alongside everything in Requirements:

Mod Tested version What was checked
KG Item Drawers 1.4.0 drawers are pulled from, and their per-storage switch works
Adventure Backpacks 2.4.7 materials in the equipped backpack count when crafting and building; arrows and bolts fire straight out of it
Plateautem 0.4.3 the totem is fuelled from nearby storage, and from the backpack
CoreWoodExtras (MagicMike) 2.5.3 its mm_corewood_chest_public, mm_corewood_chest_private and mm_corewood_stackable_chest count as storage — the same Seal Blubber was rotated through all three chest types and a vanilla chest, and the cooking station offered the recipe every time

Anything else that uses Valheim's own Container should work the same way. A container another mod implements entirely on its own — a custom inventory that never creates a Container — cannot be read by this mod, by design.

Requirements

Every player and the server must install this mod. Multiplayer compatibility is enforced (EveryoneMustHaveMod): if a client is missing the mod — or is running a different version — the connection is refused. The exact same CraftFromDrawersAndChests.dll is used on the server and on every client.

  • BepInEx 5.4.2351 (the current BepInExPack_Valheim). 5.4.2350 works too: both packs ship the same BepInEx 5.4.23.5 core and HarmonyX 2.9.0.
  • Jötunn 2.30.3 — required.
  • MultiUserChest — must NOT be installed. MultiUserChest's chest-sharing code is now built into this mod (Chest/, taken from MultiUserChest 0.6.2 under the MIT licence), so the two would patch the same methods and register the same network routes. This mod declares it an incompatible dependency, which means BepInEx refuses to load this mod while MultiUserChest is present. Remove MultiUserChest before upgrading. It is built in on purpose: the code is in-tree so its decisions — who owns a chest, which branch answered an open, what a pull actually did — can be logged with this mod's own Debug switch and fixed here, instead of being observable only through another plugin's compile-time debug build. See MultiUserChest is now part of this mod below.
  • KG Item Drawers 1.4.0 — optional. With it absent the mod runs chest-only; with it present, drawers are pulled from as well.
  • Adventure Backpacks 2.x (tested with 2.4.7) — optional. With it installed, materials in your equipped backpack count as held when crafting and building, using Adventure Backpacks' own rules (including its Leave One Item In Backpack setting), and arrows and bolts can be fired straight out of the backpack.
  • Plateautem 0.4.3 — optional. With it installed, a plateautem is fed from nearby chests and drawers — its selected fuel, up to its own capacity — and an equipped Adventure Backpacks backpack can pay for that fuel (see Plateautem ↔ Adventure Backpacks bridge above). Tested against Plateautem 0.4.3 and Adventure Backpacks 2.4.7; if either mod changes shape the bridge logs a warning and switches itself off rather than guessing.

Who owns a chest, and what everyone else can do with it

A chest belongs to the player who claimed it — the first one to open it while it was unclaimed — and it stays theirs when someone else opens it. Every player can craft and build from it: a cost that has to be taken from a chest another player owns is fetched over the network first and the craft completes the moment those items arrive (a fraction of a second later). Nothing is crafted until the materials are actually in hand.

MultiUserChest is now part of this mod

MultiUserChest's chest-sharing layer is compiled into CraftFromDrawersAndChests.dll (absorbed from MultiUserChest 0.6.2, MIT — see LICENSE-MULTIUSERCHEST.txt). Uninstall MultiUserChest; this mod declares it an incompatible dependency, so BepInEx will refuse to load this mod while it is present.

It was rolled in for debugging: a chest problem used to be a black box behind another plugin whose only diagnostic switch was a compile-time DEBUG symbol, so a shipped build could say nothing about what it decided. Now every chest decision is this mod's own code and follows its Debug setting at run time — who owns a container and whether an open was granted or handed over, which branch answered it, what a pull took or routed, and what it waited for.

Remove these before installing

This mod does what they do, and replacements must not overlap. Uninstall them first or you will get conflicting patches and double pulls:

  • MultiUserChest — its chest-sharing code now ships inside this mod (see above). Two copies would patch the same methods and register the same MUC_* network routes, so this mod declares it an incompatible dependency and BepInEx refuses to load this mod while it is installed.
  • CraftFromContainers
  • AzuCraftyBoxes

This mod declares all three as incompatible dependencies, so BepInEx will refuse to load while any of them is installed. Remove them from BepInEx\plugins (or your mod-manager profile) and restart before installing this mod.

Installation

From Thunderstore — recommended: https://thunderstore.io/c/valheim/p/NorCal_Nerds/CraftFromDrawersAndChests/. Install it with your mod manager, or download the zip and extract it into BepInEx\plugins.

By hand:

  1. Install BepInExPack_Valheim (BepInEx 5.4.2351) into your Valheim folder.
  2. Remove MultiUserChest if you have it, then drop CraftFromDrawersAndChests.dll into BepInEx\plugins. Optionally install KG Item Drawers.
  3. Do the same on the server. Restart the server and each client.

Configuration

Settings are written to BepInEx\config\NorCal_Nerds.CraftFromDrawersAndChests.cfg on first launch and can be edited in-game with the BepInEx ConfigurationManager. The server's values win; clients receive them on connect.

See CHANGELOG.md for the release history.

Troubleshooting

A storage's contents are not being counted. Hover it. If the hover text ends with (pull: off), that storage is switched off — for everyone, permanently, on that object — and this mod will never pull from it. The switch is flipped by the Toggle storage key while the storage is under your crosshair, so do not bind that key to a movement key: the shipped default is x, and a key you press while walking (such as W or S) will silently toggle whatever you happen to be looking at.

A chest another player filled still reads as empty. Known limitation: a chest's contents reach a client when the game sends them, and it sends a chest when a player takes ownership of it — opening it — not when a teammate fills it. Opening the chest yourself clears it for your client. A diagnostic build (Debug enabled) logs what each chest's local copy and ZDO claim, which is how this is being tracked; see CHANGELOG.md.

A requirement is tinted amber and marked *, but I can see the item in a drawer. That item is in storage this mod will not take from: the storage is switched off, or it refuses you — another player's private chest, or a chest a ward denies. The marker is Blocked hint suffix, the tint is Blocked color, and the one-off message names the item and the reason. Unlock or switch the storage back on and the row returns to normal; a genuine "you have none" stays unmarked.

Storage that is further away is ignored. Only storage within Maximum range of you — or of the station, for the fuel, ore and cooking features — is used at all. 0 or less means unlimited, but that also means every storage you own is scanned.

The available amount is one below what I am carrying. Materials in your equipped Adventure Backpacks backpack are counted as held, which means they follow that mod's rules too. With its Leave One Item In Backpack option enabled, one item of each type is deliberately left uncounted and unconsumed, so 25 carried legitimately reads as 24. Turn that option off in Adventure Backpacks if you want the whole stack usable.

An ingredient is in my backpack but the panel shows none. Check Adventure Backpacks' Enable Craft From Backpack setting. With it disabled the backpack is not counted here either — and that mod will not consume from it either.

Nothing is pulled while I hold a modifier. The Prevent mod key (default left alt) suspends this mod entirely while it is held, so only your inventory is used.

A pull did not deliver everything. Delivery goes into your inventory, so it needs room there: a matching free stack, or an empty slot for an item that does not stack (such as a Dvergr lantern). The pull takes what your inventory can accept rather than refusing the whole thing, so a nearly full inventory brings back part of the materials; if nothing at all fits, it does nothing. A recipe with several ingredients has to fit as a set.

Bugs and feature requests

Both belong in the issue tracker: https://github.com/ghstwhl/CraftFromDrawersAndChests/issues.

A report that can be acted on usually carries:

  • the version this mod loaded as, which BepInEx\LogOutput.log states on startup;
  • that log, or at least the part of it around the problem — it is where any diagnosis starts;
  • whether you are playing alone or on a server, and if on a server whether you are the host or a client;
  • the versions of the rest of the chain: KG Item Drawers and Adventure Backpacks (both optional), and confirmation that MultiUserChest is not installed (since 2.0.0 its layer is part of this mod, and BepInEx will refuse to load this mod while it is present).

A fault in another mod belongs on that mod's own tracker rather than here — Item Drawers' hotkeys and hover text, for instance, are not ours to change.

Building from source

Build and packaging tooling lives under tools/; the local reference assemblies it needs are documented in REFERENCES.md.

Credits

  • CraftFromContainers (aedenthorn) — the behavioural baseline this mod ports.
  • AzuCraftyBoxes (Azumatt) — reference for the storage abstraction and the toggle.
  • MultiUserChest (MSchmoecker, MIT) — the chest concurrency protocol this mod builds on. Since 2.0.0 its source is compiled into this mod (Chest/) rather than required as a separate plugin, so that its behaviour can be logged and fixed here. Copyright © 2022 Maximilian Schmöcker; the MIT notice ships as LICENSE-MULTIUSERCHEST.txt.
  • Jötunn — the mod framework and server-synced configuration.

Licence

GPL-3.0 — see LICENSE.md.

CHANGELOG

Changelog

All notable changes to this mod are documented here. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[2.2.2] - 2026-11-30

Fixed

  • Chests from another mod are tracked even when their prefabs are not named like vanilla chests. The tracking predicate was CraftFromContainers' verbatim rule: track a container when its GameObject name starts with piece_ or Container, or when its ZDO carries a non-zero creator. MagicMike-CoreWoodExtras names its pieces mm_corewood_chest_public, mm_corewood_chest_private, mm_corewood_stackable_chest, mm_barrel_01 and so on — a vanilla Container and Piece on the same object, but neither test passed, so those containers never entered the tracked set at all. Three of them, each holding the same SealBlubber in turn, were invisible at the cooking station while a plain wooden chest worked.

    The predicate now also accepts a container that is part of a built Piece, which is exactly the test eligibility already applies — so this cannot open the pull to loose containers. The rule moved to Logic/StorageTrackingRules with a table test covering the vanilla, mod-named, foreign-named-in-a-piece, creator-only, loose and inventory-less/ZDO-less cases.

  • A rejected container now says so. With Debug on, a container that is not tracked logs once per prefab name: [chest] not tracked: 'mm_barrel_01(Clone)' inventory=True zdo=True creator=0 insidePiece=False …. Its absence is what made the report above need a session to diagnose — the only breadcrumb used to be the one-shot line for the first Awake of the session.

    Verified in game, 2026-11-30: with MagicMike-CoreWoodExtras 2.5.3 installed, the same Seal Blubber was rotated through mm_corewood_chest_public, mm_corewood_chest_private, mm_corewood_stackable_chest and a vanilla wooden chest, and the cooking station offered the recipe at every step. CoreWoodExtras is now listed in the README's verified compatible mods.

[2.2.1] - 2026-11-28

Fixed

  • The held-craft message named no items. It read the plan's infeasible item list, which is by definition empty for the lines it was describing — those are lines storage can supply, just not synchronously — so the log said Holding the craft of '$item_bakedpoteitr_uncooked' until arrive from another player's chest. It now names the routed lines, localised: … until Seal blubber arrive from another player's chest. Same fix on the placement message.

Changed

  • The MultiUserChest incompatibility is now stated up front in the README and the package description: MultiUserChest's chest-sharing code is built into this mod, so the original plugin must be removed — BepInEx refuses to load this mod while it is installed. The reason is given too: the code is in-tree so its decisions (who owns a chest, which branch answered an open, what a pull did) can be logged with this mod's own Debug switch and fixed here, instead of being observable only through another plugin's compile-time debug build.

[2.2.0] - 2026-11-28

Fixed

  • Both players can craft and build from the same chest, whoever opened it last. 2.1.0 only stopped the chest changing hands, which still left exactly one player able to use it. Two things had to change:

    1. The planner no longer skips a chest another player owns. PullEngine.BuildStocks used to drop such a source before a plan was built, so the crafting panel, the build panel and the pull itself could not see it. It is now planned against like any other storage. The two diagnostic sums that applied the same filter to satisfy the readout were relaxed with it, so the log and the panel agree.

    2. A craft whose cost comes from that chest is held until the items arrive. A removal from a chest another player owns is routed: ContainerHandler.RemoveItemFromChest sends MUC_RequestItemRemove and returns, and the items only reach the player's inventory with the response — what the player sees meanwhile is a display-only SlotPreview. Vanilla creates the crafted item and consumes the materials inside the same InventoryGui.DoCrafting call, so letting it run would consume less than the recipe costs. The craft is therefore suppressed, the materials are fetched, and the craft completes on the first frame the whole cost is in the inventory (CraftPaymentRules, CraftPatches.DoCraftingPrefix + TickPendingCraft). Placements behave the same way: the press fetches and does not place.

    Nothing is ever crafted unpaid. If the routed delivery does not arrive within CraftPaymentRules.PendingTimeoutSeconds (3 s) the hold is abandoned with a warning and nothing is crafted; ConsumeResources has a backstop that refuses to eat when part of the cost is still in flight. That is deliberately the slower of the two possible designs: the alternative — craft now, consume the delivery when it lands — hands out a free craft whenever the routed request is refused, and this mod's top rule is that a craft must never cost nothing.

  • Ownership is still stable: the 2.1.0 custody rule stays, so a chest no longer changes hands when someone else opens it, and this release only changes what a non-owner may count and take.

[2.1.0] - 2026-11-28

Fixed

  • Opening a chest no longer takes it out of the other player's crafting. A container a player has claimed now keeps that owner; only a container nobody has claimed — the server acting as custodian, its ZDO owner still zero — is handed to whoever opens it.

    Root cause, from a two-player capture on 2.0.1 ([chest] and storage lines are this mod's own): the availability arithmetic counts a chest only when nobody owns it or this client owns it (ChestTake.CanServeSynchronously: !hasOwner || isOwner, applied at CraftPatches, PullKeyPatches and the pull planner), while the absorbed chest layer moved ownership to every requester that was not currently holding the container open. So player A's Readout 'SealBlubber' … storage 157 (log line 2561) became storage 0 at line 3186 — one line after the hand-over at 3185 and the owner -544062696, weAreOwner False report at 3189 — while the same readout still listed the chest at count=157, proving the contents were intact and only the gate had changed. It flapped back to 157 whenever ownership came back (line 3284) and to 0 again on the next hand-over (3288). No items were lost at any point.

  • A second consequence of the same change: opening a chest someone else owns no longer triggers ForceSendZDO + ZDO.SetOwner, so the ZDO stops being re-sent (and re-loaded item by item) on every open.

Behaviour to be aware of

  • One player owns a chest; everyone else can use it but not count it. The owner (whoever claimed it first, i.e. opened it while it was unclaimed) has it counted in their crafting and building panels. Any other player can still open it, take from it and put things in — those moves are routed to the owner by the chest layer — but this mod's own crafting/building arithmetic will not use that chest for them until it is released (the owner logging off, or ownership returning to the server). This is the deliberate trade of this fix: before it, the chest switched owner on every open, so whoever opened it last could craft and everyone else could not.

[2.0.1] - 2026-11-28

Changed

  • Built against Jötunn 2.30.3 (up from 2.30.2). No behaviour change: the two assemblies differ by three members in the whole public-facing dump, all of them private — PrefabManager.RegisterTerrainOp gained an ObjectDB parameter (it is internal to Jötunn) and SynchronizationManager gained a private Menu_IsActive patch (the configuration-window mouse-capture fix). Every Jötunn symbol this mod binds is unchanged and resolves identically: Main.ModGuid, NetworkCompatibility / CompatibilityLevel.EveryoneMustHaveMod / VersionStrictness.Patch, SynchronizationMode / AdminOnlyStrictness.Always, PrefabManager.Cache.GetPrefab<T>(string) and ConfigurationManagerAttributes.IsAdminOnly. The assembly references the same 26 assemblies.
  • The package manifest now pins ValheimModding-Jotunn-2.30.3, so installing this mod no longer drags a 2.30.2 copy into a profile that already runs 2.30.3.

[2.0.0] - 2026-11-27

Upgrading requires removing MultiUserChest. Its chest-concurrency layer is now part of this mod, so the two cannot be installed together: BepInEx will refuse to load this mod while MultiUserChest is present. Every player and the server must update together, as always.

Changed

  • MultiUserChest's code is now compiled into this mod (Chest/, absorbed from MultiUserChest 0.6.2, MIT — see LICENSE-MULTIUSERCHEST.txt). It was previously a required dependency and the only sanctioned way this mod removed items from a chest. Owning it means the chest layer's decisions can be logged with this mod's own switch and fixed here, instead of being a black box behind another plugin's compile-time debug build.
  • The chest layer's verbose logging now follows this mod's Debug setting at runtime. Upstream gated every package dump, block trace and round-trip timing on a compile-time DEBUG symbol, so a published build could only ever be silent — and upstream's own changelog notes that its debug build slowed the mod down noticeably. The same call sites are now gated on the runtime flag and write at Info level, so they reach LogOutput.log when Debug is on and cost nothing when it is off.
  • Two warnings that upstream compiled out of Release builds are always on: an incoming chest request that reaches a peer which is not the container's owner, or whose container instance cannot be found. Those are exactly the events that precede a stuck chest.
  • The container-open decision is now a tested rule with a diagnostic line. Which of the four branches answers an open request — vanilla, refuse, grant-while-in-use, hand over — is chosen by Logic/ChestOpenRules, with a table test per branch, and every request logs its inputs when Debug is on: requester, player id, local uid, ZDO owner, whether the instance is the owner, access, inUse, wagon-in-use, and the branch taken.
  • Built against Valheim 1.0.31 (the hotfix is a three-member API delta, none of it used here).

Known issues

  • Chest locking can still leave a container open without handing over ownership. The branch that answers an in-use request grants the open without moving ownership (GrantInUse in ChestOpenRules), and the hand-over branch pushes the current data before SetOwner. That behaviour is now inside this mod and observable from a normal build, which is the point of this release; the fix is not in it.

[1.0.24] - 2026-11-27 (test build, not released)

Changed

  • Rebuilt against Valheim 1.0.31 (hotfix, 2026-11-27) and verified compatibility. No behaviour change here.
  • Verification detail: the hotfix is tiny and touches nothing this mod uses. assembly_valheim gained BuildUi.SearchFieldSelect(string) and BuildUi.SearchFieldDeselect(string) and lost BuildUiFavoriteCategoryCheckButton.Awake(); the API surface of every type this mod patches or reflects is unchanged. assembly_utils is identical member for member. All 23 patched targets resolve and the reflection-only targets are all present; 332/332 unit tests pass.

[1.0.23] - 2026-11-27

This release folds in everything since 1.0.11, which was published on 2026-11-07. The intermediate numbers 1.0.16 through 1.0.22 were test builds and were never published.

Added

  • A Ballista can be loaded from your storage. A turret that has never been loaded reports no ammo type at all (RPC_AddAmmo is the only thing that records one), so the search for a matching item came up empty and the ballista stayed silent. The recorded ammo type is now tried first, then the turret's own allowed-ammo list, and the recorded type is trusted outright once the turret actually holds ammo.
  • A Plateautem can be fuelled from your storage, holding E fills it. The selected fuel is pulled from the storage around the totem - stone while the totem is in its stone mode, otherwise whichever fuel the item list has selected - and the fill targets the totem's real capacity instead of drizzling one unit per press. Fuel that is only in your equipped Adventure Backpacks backpack counts too: the totem counts through the game's own inventory call, so the backpack bridge is opened around the pull.
  • Arrows and bolts fire straight out of an equipped Adventure Backpacks backpack. The bow's ammo lookup only ever walks your inventory, and a foreign item cannot be removed by the inventory either, so answering the lookup alone would have fired arrows for free. The round is spent inside the backpack instead, and the stack never moves. Loading a bow or crossbow works with every inventory slot full.
  • A diagnostic build that cannot have Debug switched off (FORCED_DEBUG), for capturing logs from a player who cannot turn on an admin-only setting. Never part of a published package; the recipe lives in tools/README.md.

Changed

  • Rebuilt against Valheim 1.0.30 (references regenerated for the new assemblies) and verified compatibility. No behaviour change here.
  • Verification detail: the API surface of every game type this mod touches is unchanged between 1.0.21 and 1.0.30 (Container, CookingStation, Fireplace, Inventory, InventoryGui, Player, Humanoid, ShieldGenerator, Smelter, Terminal, Turret including the nested Turret.AmmoType, Attack, Piece, Recipe, ItemDrop). All 23 patched targets resolve, and the reflection-only targets (Inventory.GetAmmoItem, Inventory.RemoveItem, Attack.EquipAmmoItem, Turret ammo fields, Container.CheckAccess, InventoryGui.UpdateCraftingPanel, Player.m_placementStatus) are present. In assembly_utils the only change reaching the mod's dependencies is that ZInput.GetButtonDown is unchanged while the dead-zone constants were reshuffled; the removed BrotliCompressor is unused here.
  • All 332 unit tests pass on the new references.

Known issues

  • Chest locking can still leave a container open without handing over ownership when MultiUserChest is installed. The report and its evidence are with the MultiUserChest author; the capture from a second player is recorded locally and the investigation continues.

[1.0.22] - 2026-11-22 (test build, not released)

Changed

  • Backpack ammunition is verified working in play on 1.0.21: 15 lookups answered from the equipped backpack with the stack never leaving it, 3 shots each spending exactly one round, and loading a bow or crossbow with every inventory slot full. No behaviour change here.
  • The debug log no longer reports every ammo lookup. It runs on each attack update - every frame while aiming - so the answer is logged once per ammo type, and the per-shot detail now comes from the spend line, which names the item prefab and the count left: Backpack ammo: spent 1x 'ArrowWood' from the equipped backpack (91 left there).

[1.0.21] - 2026-11-22 (test build, not released)

Changed

  • Backpack ammunition is spent where it is, instead of being moved into the inventory. 1.0.20 answered a bow's ammo check by moving the whole stack out of the backpack; the round is now consumed from the backpack and the stack stays put, matching how Adventure Backpacks pays for a craft (counted and deducted in place). Three hooks, each from the game's own code:
    • Inventory.GetAmmoItem(string,string) postfix answers the lookup with the equipped backpack's round when the player's inventory has none - every ammo path resolves through it (Attack.HaveAmmo :752, FindAmmo :717, UseAmmo :781);
    • Inventory.RemoveItem(ItemData,int) prefix redirects that one removal into the backpack, because vanilla's removal refuses an item the inventory does not contain (Inventory :374-377, :391) and answering the lookup alone would fire arrows for free;
    • Attack.EquipAmmoItem prefix keeps a backpack round out of the equipment slots - equipping an item the player does not hold is a state Adventure Backpacks never creates. The shot does not need it: UseAmmo resolves the ammunition again when it fires.
  • Side effect, deliberately allowed: loading a turret from hand now also finds a round in the backpack, since Turret.FindAmmoItem goes through the same lookup and the same removal.

Tests 333 -> 332 (BackpackAmmoRules.ShouldSpendFromBackpack replaces ShouldBridge).

[1.0.20] - 2026-11-22 (test build, not released)

Added

  • Arrows and bolts in an equipped Adventure Backpacks backpack can be fired. Vanilla resolves ammunition in Attack.HaveAmmo/FindAmmo/UseAmmo through Inventory.GetAmmoItem(ammoType), which scans the player's own m_inventory directly; AB folds a backpack into CountItems/RemoveItem only inside its crafting scope and never into GetAmmoItem, so a bow reported "out of arrows" while the backpack held a full stack (reported from play 2026-11-22). A prefix on Attack.HaveAmmo now moves the matching stack from the equipped backpack into the player's inventory with vanilla's own Inventory.MoveItemToThis, then lets vanilla's check run and find it. The move removes from the backpack only when the inventory accepted the stack, so a full inventory leaves it untouched (no duplication, no loss), and the whole stack moves because ammunition is consumed one round at a time. Guarded by BackpackAmmoRules.ShouldBridge (weapon names an ammo type, inventory has none, a backpack is equipped), so an ordinary shot never touches the backpack. Soft dependency, resolved by name.
  • Opening AB's crafting scope cannot fix this one, unlike the Plateautem — the lookup that needs widening (Inventory.GetAmmoItem) is not one AB patches, which is why this bridge moves items.

Tests 329 -> 333.

[1.0.19] - 2026-11-22 (test build, not released)

Fixed

  • Holding the interaction key now fills the Plateautem from storage, instead of feeding one item per repeat. The mod pulled exactly one unit per interaction, so the totem's own takeAll path (a held press takes min(roomInUnits, whatThePlayerHolds) from the player's inventory, on a one-second repeat) could never take more than that one: the log from play showed 30 separate Station: pulled up to 1x 'Wood' events for one hold. A held press now pulls the totem's whole remaining capacity — floor((configMaximumFuel - GetTotalFuelStored()) / fuelValue) for fuel, and floor(configMaximumStone - currentStoneStored) in its stone mode — and a single press still pulls one. If those capacity members cannot be resolved, the patch logs a warning and keeps the old one-per-press behaviour rather than guessing a quantity the totem might not take.

Tests 322 -> 329 (PlateautemFuelRules.UnitsInRoom, UnitsToRequest).

[1.0.18] - 2026-11-22 (test build, not released)

Fixed

  • 1.0.17 failed to apply the Plateautem patch at startup. HarmonyX recognises a patch-state parameter only under the exact name __state (its HarmonyManipulator.StateVar); any other __name parameter is treated as an indexed original argument and the whole patch class is rejected with System.Exception: Parameter __openedBackpack does not contain a valid index. The prefix and finalizer now use __state, and the class documents why the name is not free to choose.

No other change from 1.0.17: the storage feed and the Adventure Backpacks scope are as described there.

[1.0.17] - 2026-11-22 (test build, not released)

Added

  • Plateautem (erkle64) is fed from nearby storage. Its own interaction counts the selected fuel in the player's inventory only and reports "no fuel" when that count is zero, so the mod now asks the totem which item the current selection consumes (PlateautemFuelRules.PrefabToSupply: stone in its -1 stone mode, otherwise the selected entry of its "Fuel Item List") and pulls one of it from chests and drawers within range of the totem, exactly as the fireplace and smelter fuel paths do. Gated on the mod's Pull fuel setting and the prevent key; the whole patch is resolved by name at runtime and skipped when Plateautem is not installed.
  • An equipped Adventure Backpacks backpack can pay for the totem. AB folds the backpack into Inventory.CountItems and debits it in Inventory.RemoveItem only while its CraftingContext is open, which it never opened for a third-party totem - so a backpack full of wood was invisible and the player was told they had no fuel (reported from play 2026-11-22). The prefix opens AB's published scope and the finalizer closes it, so the count and the debit see the same pool.
  • Verified against the installed DLLs: Plateautem.Interact(Humanoid,bool,bool), fuelItems, currentFuelItemIndex, FuelItem.prefabName, and AB 2.4.7's CraftingContext.Enter()/Exit().

Changed

  • Tests 318 -> 322.

[1.0.16] - 2026-11-21 (test build, not released)

Fixed

  • A newly built ballista can be loaded from nearby chests and drawers again. A turret records its ammunition type in its own ZDO, but Turret.RPC_AddAmmo is the only writer of that field, so a turret that has never had ammunition reports an empty type; the mod asked storage for that empty name and stopped, and vanilla then answered "not turret ammo". A turret holding no ammunition is now offered every type in its own m_allowedAmmo list, with the recorded type first (StationFeedRules.TurretAmmoOrder), and the first type storage can actually supply is pulled into the player's inventory for vanilla to load. A turret that already holds ammunition is still offered the recorded type alone, because vanilla refuses any other type in that state.
  • Confirmed from play, 2026-11-21: Turret: ammo 0/40, room 40, ammoType='', defaultAmmo='<null>', allowed=TurretBolt,TurretBoltWood,TurretBoltFlametal,TurretBoltBloodgold on all five attempts against a drawer of flametal bolts.

Changed

  • With Debug enabled, each turret interaction logs the ammunition count, room, recorded type, default ammo prefab and allowed list, then the reason nothing was pulled when nothing was pulled.
  • Still no change to the chest-sync work: the known limitation documented in 1.0.15 is unchanged.

[1.0.15] - 2026-11-07 (diagnostic build, not released)

Changed

  • No behaviour change versus 1.0.11. The chest-sync attempts in the unreleased 1.0.12-1.0.14 test builds are removed: they were written on an inference about how a container's contents reach a non-owning client, and the two-player test showed the inference was wrong (a count of 1 became 0 when another player opened the chest). None of them was ever published, and none is preserved here.
  • With Debug enabled, chest state is now recorded instead of acted on. Every change to a chest's local contents logs what the copy and the ZDO say at that moment — Chest 'piece_chest(Clone)' contents changed: items 78 -> 0, revision 41, zdoItems 412 bytes, owner 90296884207702042, weAreOwner False. — and each in-range chest is described at most every ten seconds while a crafting panel is open: Chest 'piece_chest(Clone)': items 0, revision 41, zdoItems 0 bytes, owner …, weAreOwner False. The observation performs no request, takes no ownership and writes no inventory; with Debug off the mod behaves exactly as 1.0.11 does.
  • Known limitation, unchanged: a chest another player fills can still read as empty here until this client is sent that chest's contents (opening it does that). This build exists to establish, from a log, which client's copy is wrong before anything is changed again.

[1.0.11] - 2026-11-07

Added

  • A requirement that is nearby but blocked no longer looks like one you do not have. When storage does not cover a requirement but the item sits in storage you cannot use, its readout keeps the numbers, takes an amber tint and gains a marker (0/1 * by default), and a one-off message names the item and the reason: Seal Blubber is nearby but the storage holding it is switched off. Both locks count — this mod's per-storage switch, and storage that refuses you (another player's private chest, or a chest a ward denies). New settings: Blocked hint suffix, Blocked color, Blocked message.
  • Pulls are unchanged: a blocked storage still supplies nothing, and a genuinely missing item looks exactly as it did before. The hint is shown once per panel opening per ingredient and reason, so it cannot fill the HUD.

[1.0.10] - 2026-11-07

Changed

  • Built against Valheim 1.0.21, up from 1.0.20. No behaviour change: of the 26 game members this mod patches or reflects, not one changed signature or access. The 1.0.21 delta is station/save-system internals — CookingStation.SetSlot gained an Int64, Ship.UpdateSail/UpdateSailSize gained a Boolean, PlayerProfile.GetStat gained a DifficultyRequirement overload, and SaveSystem, SaveCollection and WearNTear gained private members. Full evidence: docs/sdd/2026-10-11-craft-from-drawers-and-chests/game-1.0.21-compat-analysis.md.

Fixed

  • The debug readout can now name a storage that is switched off. "I have it, but the panel says I do not" was previously unanswerable from the log when the culprit was the per-storage off switch: a switched-off storage is dropped before the pullable list is built, so it never appeared in the readout's source list at all — and the readout's own OFF marker could never fire. With Debug enabled, an unanswered requirement now lists in-range storages including switched-off ones, naming their contents and marking them OFF: [Drawer kg_ItemDrawer_Marble(Clone) 3m OFF count=78 zdo='SealBlubber'x78]. Pulls are unchanged — the extra storages are collected only for that log line.

[1.0.9] - 2026-10-24

Changed

  • The "Added …" line lists every ore type, however many there are. A smelter converts as many ores as it declares, and one fill-all press can feed copper, tin, iron and silver at once: the line names all of them with their counts — Added 1 Copper, 1 Tin, 1 Iron, 1 Silver — in the station's own conversion order. There was never a two-entry limit, and the list is now built so a type the feed actually took can never be left out (a type the smelter's own list does not name is still reported, and one it lists twice is not counted twice).

[1.0.8] - 2026-10-24

Added

  • A message says what a smelter feed actually added. Loading ore into a smelter or blast furnace now prints one line naming every ore and how many of each went in — Added 10 Scrap iron, 3 Tin — in the station's own conversion order, with the game's localized item names. It matters most with the fill-all key, where one press can draw on several ores at once: every type is listed with its count on a single line, instead of a message per unit swapping itself off the screen. Vanilla's $msg_added still covers the single unit it consumes out of your own hands, so the two read alike.
  • Nothing is printed when the feed added nothing, so an empty base stays quiet.

[1.0.7] - 2026-10-23

Fixed

  • Ore feeding from chests and drawers is restored for every ore, not just the first one. 1.0.6's fill-all fix made a pull that moved nothing count as "satisfied" so that a held fill could feed material already in your inventory. The smelter's walk over the ores it accepts then read that "satisfied" as "storage supplied this ore" and stopped at the first ore it tried — copper — even when the base held none of it. In practice tin, scrap iron, silver, scrap copper and every other ore past the first could not be fed from storage at all. A blast furnace converts one ore, which is why the 1.0.6 check passed. The walk now stops only at an ore that actually reached your inventory.
  • This was a 1.0.6 regression, not a drawer problem — chests were affected identically. 1.0.6's own fixes (the fill-all key using material you already carry, and shield generators fed from storage) are unchanged and still work.

[1.0.6] - 2026-10-23

Fixed

  • The fill-all key now fills a station from the material you are already carrying. Holding the fill-all key (left shift by default) while using a station that had the station's own input in your inventory added one item per press instead of filling it — most visible on a blast furnace with flametal in your inventory, but true of a fireplace's and a smelter's fuel, a smelter's ore and a shield generator's fuel alike. Two causes, both in the station feed: the "you already carry an input, so this is vanilla's interaction" guard ran before the modifier was consulted (on the ore path it ignored the modifier entirely), and a pull that storage had nothing to add to was reported as a failure, which stopped the feed before it fed anything. With the key held, the station now takes its whole remaining capacity from your inventory and storage together.
  • The released interaction is unchanged. Without the key, an input you are carrying is still vanilla's to consume, one per press — and with storage, a fill works exactly as it did in 1.0.5.

[1.0.5] - 2026-10-23

Fixed

  • Shield generators are fed from storage. piece_shieldgenerator was the one fuelled station this mod did not patch, so its fuel switch behaved exactly as vanilla: it took a single BoneFragments from your inventory per press, pulled nothing from nearby chests or drawers, and the fill-all key did nothing. The generator's fuel now comes from storage within range of the generator, through the same pull every other station uses, and the fill-all key fills it to capacity in one press. It is gated on the same Pull fuel setting and Fuel disallow types list as a fire or a smelter, and its hover now shows the [shift+Use] … max line.
  • Nothing else changes: a shield generator you cannot reach storage from, a full one, and one with Pull fuel off all behave exactly as before.

The Adventure Backpacks backpack is still not a source for station fuel. A backpack is deliberately never treated as storage — that is how this mod was specified — and Adventure Backpacks only exposes its contents to the game's own counts inside a crafting action, which a fuel switch is not. Move the fuel to a chest, or to your own inventory, for a station to use it.

[1.0.4] - 2026-10-16

Compatibility with Valheim 1.0.20. No behaviour change. The update removed 6 and added 21 members across assembly_valheim.dll — an anti-cheat and save-migration release (ItemDrop.ResetVariantIfInvalid renamed to EnsureValid, a new internal CheatUtils, new Version/* migration stamps) — and none of them is one this mod patches or reflects. No access modifier or signature the mod binds changed anywhere in the assembly. The reasoning and the raw evidence are in docs/sdd/2026-10-11-craft-from-drawers-and-chests/game-1.0.20-compat-analysis.md.

This build was verified in game by the owner on 2026-10-16, single player (host), on Valheim 1.0.20 as reported by the game itself: the plugin loaded, all 22 Harmony patches applied, the container-tracking patch was live and tracked a piece_chest_wood(Clone), and the session logged 0 errors. The five functional checks in author-verify.md ("Valheim 1.0.20 update") are the open items.

Changed

  • The build now compiles against Valheim 1.0.20, up from 1.0.16 (ValheimGameVersion in Directory.Build.props — the single source of truth for the reference-assembly folder).

[1.0.3] - 2026-10-14

Packaging only — no behaviour change. 1.0.2 is the release that fixed the repeat pull; this one exists because that release's manifest still carried the older BepInEx pack.

Changed

  • The BepInExPack dependency is now 5.4.2351, the current pack, instead of 5.4.2350, so mod managers no longer push players onto the older one. Nothing else changes: both packs ship the same BepInEx 5.4.23.5 core and HarmonyX 2.9.0, which is what this mod binds to, so 5.4.2350 keeps working.

[1.0.2] - 2026-10-13

Published on GitHub only — the Thunderstore upload was skipped in favour of 1.0.3, which carries the same fix plus the current BepInEx pack dependency.

Fixed

  • Pulling the same recipe twice now supplies materials twice. The ctrl-click pull — and the pull-key build press — asked storage only for the shortfall below what you were already carrying, so once a recipe's materials were in your inventory a second pull did nothing at all: you could not fetch the materials for a second portal, or a second anything. Both now ask for the recipe's or piece's whole cost on every press, which is what CraftFromContainers does.
  • A base that can only partly cover the cost now contributes the part it has instead of the pull being refused outright, so a fetch still brings back something when the chests are nearly empty. When the base cannot supply it at all, the message still names what is missing — computed from what you are actually short of, so it never names materials you are carrying.

Changed

  • A full inventory no longer cancels the pull. The amount is capped to what your inventory can accept, so a fetch delivers what fits. A recipe with several ingredients proves the capped plan as a whole, so it can still report the room failure rather than delivering a partial set.
  • Crafting and placing are untouched. Their availability checks and their material consumption still count what you already carry, so a recipe you can partly supply is still offered, and is still paid from your own inventory first. Only the deliberate pull changed.

[1.0.1] - 2026-10-13

Supersedes 1.0.0, which was packaged locally but never published.

Changed

  • The per-storage toggle now defaults to x instead of left shift + e. The old default collided with Item Drawers' own "withdraw single item" hotkey, which is really LeftShift + E — its hover text calls it "Left Alt + E", but its code reads KeyCode 304, and in Unity's enum 304 is LeftShift while 308 is LeftAlt — so on a drawer one press did both. x is read by neither the game nor Item Drawers (E, LeftShift) nor Adventure Backpacks (I, Y). Existing installs keep their configured value — BepInEx preserves a value once it is written, so this only affects a fresh config. If yours is bound to a movement key (W, A, S or D), change it: the toggle flips whatever storage is under your crosshair, so a movement key switches storage off silently as you walk.
  • Debug logging is now off by default. It was on, which wrote this mod's diagnostics into every player's log. A fresh config is now quiet; an existing config keeps whatever it has.

Fixed

  • Comment only, no behaviour change: CountHeldBySharedName claimed that station feeding never reads the held count. It does — a station's shortfall is planned through the same planner — and that is correct only because Adventure Backpacks' craft scope is closed on those interaction paths, so its backpack contribution is absent exactly where a station could not consume it. The comment now records that dependency, because relying on it silently is how a station would end up under-fed.

[1.0.0] - 2026-10-13

First stable release. Behaviourally this is the build validated in game as 0.1.13 — the version bump changes no code — with the README brought up to date.

What it does

  • Craft and build from storage. Chests and KG Item Drawers drawers within one range (default 10 m; 0 or less means unlimited, matching CraftFromContainers) supply the materials for crafting stations, the crafting menu and the build hammer.
  • Pull on demand. Hold left ctrl and ctrl-click a recipe or a placement to move its ingredients into your inventory instead of crafting it.
  • Station feeding. Fireplaces, smelters, cooking stations and turrets draw fuel, ore and cooking ingredients from storage; left shift asks for the station's whole remaining capacity rather than one item per interaction, and the hover text names the key.
  • Your backpack counts. With Adventure Backpacks, materials in your equipped backpack count while crafting and building, under that mod's own rules — including its Leave One Item In Backpack option, which is why a carried stack of 25 can read as 24.
  • All-or-nothing. If the whole requirement cannot be secured, nothing is consumed, so a craft is never paid for by nothing. Storage yes is not enough either: the destination inventory must have room for what the pull would deliver.
  • Per-storage switch. Any chest or drawer can be taken out of pulling for everyone with a hotkey while hovering it. The switch lives on the object, so it is shared and saved with the world.
  • Server-authoritative config. The server's values are pushed to clients and non-admins cannot change them, and every player and the server must run the same version.

Notes

  • Chest reads and removals go through MultiUserChest, so two players can use one chest at once without desync; drawer removals use Item Drawers' own ForceRemove RPC and never write a drawer's ZDO amount.
  • Item Drawers support is pinned to that mod's 1.4.0 ZDO contract and RPCs. If they change, drawer pulling degrades to chest-only rather than failing.
  • The README's Troubleshooting section covers the per-storage switch, Maximum range, and the Adventure Backpacks interaction.

[0.1.13] - 2026-10-13

Fixed

  • Materials in an AdventureBackpacks backpack now count, so a recipe that needs them is offered and craftable. Reported from play: a cauldron recipe wanting one Boar Meat read 0/1 and could not be crafted with all 25 in the backpack, and the forge ignored backpack contents too. The mod counted "held" by scanning Player.m_inventory itself, which cannot see the backpack — that is a separate Inventory — so the requirement gate concluded the player had nothing and refused the craft, while the crafting readout overwrote AdventureBackpacks' own number with its own.
  • "Held" is now the game's own Inventory.CountItems(name, -1, false), at every place it is read: the shortfall a pull plans for, the crafting and building readout, and HasAnyOfEach's "has any of this material". AdventureBackpacks postfixes that very method to add the equipped backpack's contents, and does so only while its craft scope is open — which covers every method this mod reads held inside — so a backpack item is counted exactly when that mod will also pay with it, and never counted when it will not. Nothing is pulled out of the backpack into the player's inventory.
  • Counting the game's own method also makes "held" a superset of what vanilla consumes by construction rather than by a hand-rolled scan, which is the invariant that keeps a craft from ever costing nothing. The pure DrawerTake.HeldAmount rule and its fixture went with it: one held notion rather than two.

Added

  • Each requirement's readout is logged once per distinct answer while Debug is on, and an unanswered requirement lists every in-range source with its kind, its distance, the count it reported for the prefab, and — for a drawer — the raw prefab string and amount its ZDO actually holds. A drawer storing an item under a different prefab string than a requirement names is otherwise indistinguishable from one that is out of range or switched off, and neither half of that comparison is visible in the game's own UI.

Notes

  • Holding Left alt with the crafting or build panel open deliberately blanks storage from the readout. That is the Prevent mod key, a CraftFromContainers port whose default is left alt: with it held this mod does not count storage at all, so the panel shows AdventureBackpacks' own number — the backpack counts and drawers and chests do not. Rebind or clear that key to change it.
  • Station feeding still counts the player's inventory only, deliberately: a fireplace, smelter or cooking station takes its input out of player.GetInventory() alone, so an item in a backpack is genuinely not available to it.

[0.1.12] - 2026-10-13

Fixed

  • A single-item feed printed the game's "you don't have any …" message even though the item was fed. 0.1.11's per-unit confirmation compared the station's remaining capacity against this call's unit bound — 1 on the single-item path, the whole capacity on the fill path — so on E any station with room at all read as "did not take it". The feed then reported nothing fed, the patch left the interaction to vanilla, and vanilla printed its own message ($msg_outof for a fire, $msg_donthaveany / $msg_noprocessableitems for a smelter) after the item had already arrived. That is exactly why the fill path looked correct and E did not: there the bound happened to equal the capacity. The check now reads the station's capacity before the unit and requires it to fall.

Added

  • A fireplace's hover now names the fill key, e.g. [left shift+E] Add, so a fire says how to fill it. CraftFromContainers adds this hint to the smelter's two hovers only, which left a fire with no way to discover the key. All three hovers go through one helper and use the game's own "Add" token, so they read alike.

Notes

  • The smelter's two hints still read "Add max item" for ore and "Add max" for fuel. That difference is CraftFromContainers', and the wording is the game's own (m_addOreTooltip for ore, the $piece_smelter_add token for fuel), so it is kept rather than smoothed over.

[0.1.11] - 2026-10-13

Changed

  • The player's inventory is the station feed's staging area, by the owner's decision. Using it as a pass-thru is acceptable provided nothing extra is left in it, and nothing is: a take is capped by the inventory's own free room, so it can never over-take; every unit taken is fed to the station in the same interaction, so the net inventory is unchanged; and with no room at all nothing is taken and nothing is fed. A full inventory therefore stops a station being fed — accepted over giving the mod a staging inventory of its own, which risked stranding items outside any inventory.
  • The feed now confirms each unit actually reached the station before removing another, by re-reading the station's remaining capacity (a station gains exactly one unit of capacity per unit fed). The order — remove, then invoke the station's add RPC — means an RPC that does not land destroys an item, and losing a whole batch silently would be far worse than the failure itself. Checked per unit, the most a broken feed can cost is one, and it logs an error naming the item instead of doing nothing visible.

[0.1.10] - 2026-10-12

Fixed

  • The station feed could leave the unit in the player's inventory. The feed removed it by stack reference (Inventory.RemoveItem(stack, 1)). Vanilla's own consumption and CraftFromContainers both remove by name (Inventory.RemoveItem(<shared name>, <amount>)), and a reference-based removal that quietly does nothing left station fuel and ore in the player's backpack — reported from play on both the single-item and the fill path, which is what pointed at the feed itself rather than at the amount. The removal now uses the same overload vanilla uses.
  • The feed checks that each removal actually took effect (an item count before and after) and stops with a logged warning if it did not, so a removal that does nothing can never again starve a station while quietly filling an inventory. It also stops rather than looping on such a removal.

[0.1.9] - 2026-10-12

Fixed

  • Station feeding no longer routes items through the player's inventory. 0.1.8 wired the fill path to deliver into the station but left the single-item path — one E press — pre-loading the player's inventory for vanilla to consume. Reported from play: with a full inventory that put the item in the player's backpack instead of the station, and with no room at all it left the station unfed. CraftFromContainers feeds the station at both amounts (pullAll ? Min(capacity - used, available) : 1), so all four feedable paths — a fireplace's fuel, a smelter's fuel and ore, and a cooking station's fire — now remove the unit and drive the station's own replicated add RPC directly, at one unit or at the whole remaining capacity. The unit is fed in the same frame it is taken, so the inventory never holds it: a full inventory now means only that no more can be taken, not that items land in the wrong place.
  • The Smelter and CookingStation prefixes report the interaction as handled (__result = true) once they feed, which is the value CraftFromContainers sets; the fireplace reports it consumed, its own value there.

Notes

  • Cooking food still stages through the player's inventory and cannot avoid it: the game hands a cookable over as an item reference (FindCookableItem) with no add RPC to drive, and this mod may not mutate a container's inventory directly (Ruling 5). A completely full inventory can therefore still stop a cooking station being stocked.

[0.1.8] - 2026-10-12

Added

  • Fill-to-max now fills the station itself. Holding Fill all mod key on a fireplace, a smelter's fuel or a smelter's ore asks storage for the station's whole remaining capacity and delivers it into the station, so one interaction reaches the maximum instead of pre-loading the player's inventory for vanilla to consume one unit at a time. This is CraftFromContainers' behaviour, and it is the parity the owner ruled for in Task 15c.
    • The feed drives the station's own replicated add RPC (RPC_AddFuel, RPC_AddOre) — the same two shapes CraftFromContainers invokes — and it removes each unit from the inventory itself, so exactly one unit leaves the inventory per unit the station gains and nothing can be duplicated.
    • It works in batches: a pass moves only what the inventory can accept at that moment, so a station needing a hundred ore still fills from a base whose player has three free slots.
    • A cooking station keeps CraftFromContainers' one-item-per-interaction behaviour. CFC has no fill branch for it, so this matches the oracle rather than "improving" on it.

Changed

  • Maximum range now defaults to 10, and 0 (or less) means unlimited — both matching CraftFromContainers (CFC's ContainerRange default and its maxRange.Value <= 0 test). A player arriving from CFC no longer silently loses storage that this mod's 4-unit default excluded, and a 0 carried over from CFC no longer disables the mod with nothing in the log to explain it. Both range consumers — the chest/drawer filter and the drawer query's own filter — now read one rule, so 0 cannot mean unlimited for one kind of storage and nothing for the other.

Notes

  • One deliberate parity gap: a fill with a completely full inventory takes nothing, where CFC would still succeed because its items never pass through the inventory. That is the same limit this mod's single-item station feeding already has. See the Task 15c design record in docs/sdd/.

[0.1.7] - 2026-10-12

Added

  • Key combinations for the per-storage switch, defaulting to left shift + e. AzuCraftyBoxes uses LeftShift+E for the same feature, so the mod now matches it and the switch works out of the box instead of needing a key to be bound first. A combination is written with +: every name but the last must be held and the last is pressed, and a single key is just the one-name case of that rule. Spacing and casing do not matter, so LeftShift+E, left shift+e and left shift + e are the same setting, and the hover line shows it as (press Left Shift + E to toggle).
  • Unity spells the modifier keys as two words (left shift, left ctrl, left alt) while mod documentation usually writes them closed up, so the common closed-up spellings are accepted as well and normalised. Every hotkey in the mod shares that normalisation, so the pull, prevent and fill-all keys accept them too.

Notes

  • Shift+E also drives other mods' "store all of this item" convenience, and E is Valheim's interact key, so toggling while a chest is under the crosshair may also open it. That overlap is shared with AzuCraftyBoxes, whose convention this is.

[0.1.6] - 2026-10-12

Fixed

  • A setting changed while the game is running now takes effect at once. The mod reads its configuration through a snapshot that was only rewritten by Jötunn's server push, so a value edited in the ConfigurationManager (F1) changed the entry but not the snapshot: a toggle key set in game still read as unset on the storage hover line, and pressing it did nothing, until the next world load or a cfdac reset. Every entry now re-reads the snapshot when it changes.
  • A toggle key written with a capital letter was silently dead. The input system matches key names case-sensitively and the toggle hotkey passed the configured value through unchanged, so N or Left Shift never fired — while the pull and prevent keys lower-cased theirs. Every hotkey now reads through one shared normalisation (ToggleRules.InputKeyName), which also trims spaces.

Notes

  • A key setting takes a single Unity key name (n, left shift, mouse 0), not a combination, so a config editor's key-capture cannot express something like Ctrl+E.

[0.1.5] - 2026-10-12

Added

  • The storage hover line now names the key that flips the per-storage switch. A chest or drawer reads Wood chest (pull: on) (press N to toggle), and when no key is bound it says (no toggle key is set) instead. The suffix reported the state but not how to change it, and because Toggle storage key is a server-authoritative setting a client cannot necessarily read it out of their own configuration file - so the hover line is the only place a player can learn it.
  • Both kinds of storage now build that text through one function. A chest and a drawer produce hover text through different game methods, and two call sites each appending their own string is how the drawer half came to show a state with no key while the chest half showed neither.

[0.1.4] - 2026-10-12

Fixed

  • The per-storage switch still did nothing on chests. TogglePatches carried its two targets (Container.GetHoverText for the hover suffix and Player.Update for the hotkey) on its methods only, so it was skipped for the same reason as the four classes fixed in 0.1.3 — the class-level [HarmonyPatch] in that file sat on DrawerHoverTextPatch, the drawer half, not on TogglePatches. Drawers therefore showed their switch state while chests did not, and the hotkey never fired. The class now carries a bare [HarmonyPatch] too; no code moved.
  • The start-up patch report made this visible: 0.1.3 listed 19 patched methods, and the only two declared sites absent from that list were exactly these.

[0.1.3] - 2026-10-12

Fixed

  • The real reason the mod did nothing in game: almost every patch was silently never applied. HarmonyX 2.9.0 only treats a type as a patch class when it carries a class-level [HarmonyPatch]. A class whose only [HarmonyPatch] attributes sit on its methods is skipped entirely: it applies nothing, throws nothing and logs nothing, while BepInEx reports the plugin loaded and "0 failed". CraftPatches, PullKeyPatches, StationPatches and TerminalPatch were written that way, so crafting, building, stations, the pull key and the console command were all inert. Each of those classes now carries a bare [HarmonyPatch] as well; the attribute states no target, so the existing method-level targets still supply it and no code moved.
  • A live patch count was what found this: the start-up line reported 3 patched methods (the two in ContainerTrackingPatches and one in TogglePatches, the only classes already annotated at class level) where roughly twenty were intended.

Added

  • The start-up report now names the patched methods, so a patch whose target fails to resolve shows up as a gap rather than being hidden by a count.
  • Tests/PatchApplicationTests.cs settles patch placement with throwaway targets and no game assemblies: it proves both class-level forms are applied by the shipped HarmonyX, so this class of failure can never pass the test suite again. The Logic tests could not see it, because the test project compiles the Logic sources in rather than referencing the product assembly.

[0.1.2] - 2026-10-12

Fixed

  • The mod did nothing at all in game, for a second reason. Plugin.Awake called Harmony's no-argument Harmony.PatchAll(), which does not patch the calling assembly — it infers one with new StackTrace().GetFrame(1).GetMethod().ReflectedType.Assembly. When that inference does not resolve to this mod's assembly, Harmony patches the wrong assembly instead: it finds no [HarmonyPatch] classes there, applies zero patches, throws nothing and logs nothing. The assembly is now passed explicitly (Harmony.PatchAll(typeof(Plugin).Assembly)), so the inference is gone. This is why 0.1.1 could fix the config fault and still do nothing in game.

Added

  • A permanent start-up line reporting how many game methods this mod's Harmony instance patched (and what the old inference would have chosen), with an error when the count is zero. 0.1.1 loaded cleanly, threw nothing and patched nothing, and nothing in the log could tell that apart from a mod that works and simply finds no storage nearby — which cost two test cycles to discover.
  • A one-shot breadcrumb when the container-tracking patch first runs, naming the first container and whether it was tracked, and a one-shot breadcrumb in the console hook naming the first console line it sees.

[0.1.1] - 2026-10-12

Fixed

  • The mod did nothing at all in game. PluginConfig registered its own config file with Jötunn's SynchronizationManager.RegisterCustomConfig, which always throws for a plugin's default mod config ("already synchronized"). The exception aborted Awake before Harmony.PatchAll(), so no patches were applied — no chest pulling, no drawer pulling and no per-storage switch — and BepInEx still reported the plugin as loaded, so nothing in the log marked it as a failure.
  • Config initialisation is now guarded: a failure there can no longer prevent patching, and it logs an error and disables the mod explicitly rather than leaving it silently inert.
  • Declared [SynchronizationMode(AdminOnlyStrictness.Always)] so the server-authoritative settings are enforced as intended.

Notes

  • The server and every client must run the same patch version (NetworkCompatibility(EveryoneMustHaveMod, VersionStrictness.Patch)), so update both sides together or the join is refused by design.

[0.1.0] - 2026-10-11

Added

  • Initial release: mod identity and Thunderstore packaging.