
StoreAndCraft
Base that works with you: auto-store, dump, craft from chests, [E] stations + per-kiln filters, multi-type Storage Displays, favorites, search. Server + all clients.StoreAndCraft
Your base runs with you.
Loot finds its chest. One key clears your pockets. Craft, upgrade, and build straight from storage. Feed kilns and smelters with [E] — and tell each station which wood or ore it’s allowed to take. Storage Displays track your stock by type (pick several at once). Mark favorites with F, find a stack with Y, skip a chest with [I]. Carts and ships count too.
Required on the dedicated / hosted server and every PC client (same version). Valheim 1.0 · BepInExPack 5.4.2350+. Console players via crossplay cannot load the mod.
Bug reports: https://github.com/morda0511/StoreAndCraft/issues/1
Discord: https://discord.gg/aVKVVmyzj
Features
Auto-store
- Ground items are pulled into nearby chests automatically.
- Default: a chest only accepts an item if that type is already inside (
MustHaveExisting). - Carts (
Vagon) and ships count as containers too. - Ward / private area rules still apply.
Dump & quick store
.— dump allowed inventory stacks into matching nearby chests.- Middle mouse (inventory open) — store only the hovered item.
- Hotbar can be skipped (
IgnoreHotbar). - Favorites are never dumped / hover-stored (see below).
Craft & build from chests
- Recipes and hammer pieces count nearby chest contents.
- When you craft / upgrade / build, missing mats are taken from chests directly (not dumped into your backpack first — that used to fill free slots and cancel the craft).
- Craft / upgrade button enables when mats are in inventory or chests.
- Yellow tint on requirement text when part of the count comes from a chest.
LeaveOneItem(default on): when pulling / consuming, one item stays in each chest so auto-store can keep refilling. The “have enough?” check still counts full stacks.
Station refill [E]
Works on smelters, charcoal kilns, cooking stations, fires / torches, fermenters, turrets, etc.:
- Pulls fuel / ore / food from nearby chests when you don’t have it.
- Inventory first: if you already hold a valid item (e.g. deer meat), that is used before chest contents (e.g. boar meat).
Kiln / smelter pull filter
- Look at a kiln or multi-input smelter → Alt+E.
- Skills-style list with [+] / [-] toggles.
- Choose which wood / ore types may be auto-pulled (e.g. turn Wood OFF, leave Core wood ON).
- Saved per station (ZDO). Manual use from inventory is not blocked for types you hold yourself; auto-select / chest pull respects the filter.
Storage Display (Hammer)
- Build Storage Display (wood-sign look).
- [E] → type menu ([+] / [-]), same style as the kiln filter.
- Select one or several types at once (e.g. Wood + Ore); board shows all matching items.
- Chests named with
[I]are ignored. - Place several displays with the same selection next to each other → shared pages
(1/2),(2/2), …
Favorites
- Inventory open → hover item → F.
- Gold tint, ★ badge, tooltip line.
- Skipped by dump and hover-store.
- Local file:
StoreAndCraft.favorites.txt(not server-synced).
Ignore chests
- Prefix the chest name with
[I]→ no auto-store, no craft pull, not counted on displays. - Hover text turns red so ignored chests are easy to spot.
- Rename with Alt+E (or Shift+E alt-use).
Search
- Inventory open → hover an item → press Y.
- Nearest chest that holds it blinks 3 times and gets a map ping.
Multiplayer
- Install on server + all clients, same version.
- Server config sync (
LockConfigdefault on). - Safe chest transfers (no ownership steal while someone has a chest open).
Keys (defaults)
| Key | Action |
|---|---|
| . | Dump inventory into matching nearby chests |
| Middle mouse | Store hovered inventory item (inventory open) |
| Ctrl + Middle mouse | Fill hovered stack from nearby chests |
| Alt + E | Rename looked-at chest or open kiln/smelter pull filter |
| F | Favorite / unfavorite hovered inventory item |
| Y | Hover an inventory item and press — nearest chest with that item blinks 3× + map ping |
All hotkeys are configurable in the .cfg and stay local (not overwritten by server sync).
Chat / console commands
Works in chat (/…) and in the F5 console (with or without leading /).
Changing ranges: host / server admin only. Anyone can view status / help.
Command list (click to expand)
| Command | Who | What it does |
|---|---|---|
/help store |
Everyone | Print help to console (F5) |
/help storeandcraft |
Everyone | Same as above |
/storehelp |
Everyone | Same as above |
/sac status |
Everyone | Show current Dump / Store / Storage / Craft ranges + LockConfig |
/dumprange <n> |
Host / admin | Set dump / middle-click range (meters) |
/storerange <n> |
Host / admin | Set auto-store ground→chest range |
/storagerange <n> |
Host / admin | Set take-stack / search / display range |
/craftrange <n> |
Host / admin | Set craft / build / station-pull range |
/sac dump <n> |
Host / admin | Alias for /dumprange |
/sac store <n> |
Host / admin | Alias for /storerange |
/sac storage <n> |
Host / admin | Alias for /storagerange |
/sac craft <n> |
Host / admin | Alias for /craftrange |
Examples
/sac status
/craftrange 25
/sac dump 10
Ranges are saved to com.morda.storeandcraft.cfg and synced to clients when LockConfig is on. Valid range: 0–500.
Storage Display types
Resources: Wood · Ore · Metals · Stone · Fuel · Hides · Parts · Crops & Seeds · Raw Food · Gems & Coins · Boss / Rare
Other: Food · Fish · Trophy · Ammo · Tools · Weapons · Armor · Utility · Misc
Config
One file only (no YAML):
BepInEx/config/com.morda.storeandcraft.cfg
| Setting | Meaning |
|---|---|
LockConfig |
true = server owns gameplay values; clients receive them on join |
ModEnabled / StoreEnabled / CraftEnabled |
Feature toggles |
MustHaveExisting |
Chest only accepts item types it already holds |
LeaveOneItem |
Leave 1 in chest when pulling |
IgnoreHotbar |
Dump skips hotbar row |
AutoStackEnabled |
Compact stacks inside chests (off by default) |
PlayerDumpRange |
Dump / middle-click (m) |
StoreRange |
Auto-store ground items (m) |
StorageRange |
Take-stack / search / displays (m) |
CraftRange |
Craft / build / station [E] (m) |
IntakeInterval |
Seconds between ground-item scans |
Hotkeys (DumpKey, FavoriteKey, …) |
Local only |
Dedicated: edit the .cfg on the server, save — it reloads and syncs. Client gameplay edits are ignored while LockConfig is on.
Install
- Install BepInExPack Valheim.
- Drop
StoreAndCraft.dllintoBepInEx/plugins/StoreAndCraft/(or install via Thunderstore / r2modman). - On dedicated servers: install the same version on the server and every client.

