How do you craft using materials from nearby chests in Valheim?
Short answer
Install AzuCraftyBoxes. Crafting and building then count and use materials from containers within its Container Range, 20 by default, so you stop emptying chests into your pockets before every recipe. Quick Stack and AzuAutoStore are often mentioned with it, but they move items the other way, from you into chests.
AzuCraftyBoxes is a Valheim mod that allows players to access and use resources from nearby containers when crafting and building, based on a configurable range and item restrictions. Restrictions are controlled by the yaml file Azumatt.AzuCraftyBoxes.yml
Automatically store and deposit items from your inventory or ground into nearby chests and containers. Chest management, hotkey support, quick stack, auto-pickup, favorites, ItemDrawers, backpacks, WardIsLove, ward protection.
AzuCraftyBoxes works at crafting stations and with the hammer. When a cost is being covered from a chest, the numbers in the recipe flash yellow, so you can see where the materials are coming from. It works with containers from other mods as long as they use the base-game container system, and with Epic Loot's enchanting table.
Two defaults matter in everyday use. Leave One Item is on, so a chest always keeps one of each item after a pull, which lets quick-stack and auto-store mods keep sending that item back to the same chest. Prevent Pulling Logic, LeftAlt + O by default, turns pulling off for you on the spot, which helps when you're about to craft something you don't want paid for out of the shared chest.
Restrictions live in BepInEx/config/Azumatt.AzuCraftyBoxes.yml. You list a container's prefab name and exclude item names or groups such as Food, Ores, Metals or Woods, with includeOverride to let single items back in. The example file already sets piece_chest_private to exclude All, so a private chest stays out of it. The same file has entries for smelters, kilns, cooking stations and fires, and holding LeftShift at one of them pulls in all available fuel or ore.
Quick Stack Store Sort Trash Restock and AzuAutoStore handle the putting-away half. The first quick-stacks, restocks, sorts and trashes, with favourites (hold Alt) to protect items. AzuAutoStore pulls nearby dropped items into containers, and the . key dumps your inventory into nearby chests. They work well with AzuCraftyBoxes because of that Leave One Item default.
Keep the range as small as your workshop. A big radius means more containers to check every time a recipe updates. On a server the range is synced and Lock Configuration is on by default, so admins set it for everyone. AzuCraftyBoxes version-checks itself, which means a server running it kicks players who don't have it.