Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
DvergerAutomation
Lore friendly craft from containers, and auto-sort them back in.
| Date uploaded | 8 hours ago |
| Version | 0.8.0 |
| Download link | MidnightMods-DvergerAutomation-0.8.0.zip |
| Downloads | 426 |
| Dependency string | MidnightMods-DvergerAutomation-0.8.0 |
This mod requires the following mods to function
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.2350ValheimModding-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.0README
DvergerAutomation
Build a Dverger Autosorter and the chests around it become one shared material pool. Craft at any workbench it links, build with the Hammer anywhere in its range, and the ingredients come straight out of your storage instead of your backpack.
It works in both directions: dump a haul into the sorter's deposit box and it files each stack into the chest that already holds that item.
No more hauling stacks of wood and iron out of chests before every build session, and no more hand-sorting them back in afterwards.
Features
Craft and build from nearby storage
The Autosorter periodically scans its surroundings and links two things:
- Crafting stations in range. Standing at a linked station, recipes treat the linked chests as part of your inventory: a recipe is craftable when your pack and the chests together cover it.
- Storage chests in range. Building with the Hammer anywhere inside the Autosorter's radius pulls materials from those same chests.
Each ingredient row shows what storage can contribute: a green +N after the required amount is
how many of that material the linked chests hold, and hovering the row spells it out. The amount
only flashes red when your inventory and the chests together still fall short. The figure counts
only what the Autosorter would actually spend - enchanted gear and anything sitting in the deposit
box are left out. Turn it off with Show Storage Counts if you would rather keep the vanilla panel.
Your own inventory is always spent first; only the shortfall is drawn from storage.
The switch. A button with the Autosorter's icon hangs off the left edge of the crafting panel, above the repair button - and off the top-right corner of the Epic Loot enchanting window. It lights up while storage is in play; click it and crafting, upgrading, Hammer building and enchanting go back to counting only what you are carrying, exactly as if no Autosorter were in range. Useful when you want to spend a specific stack, or to see what you can actually make on the road.
This is a client-side preference: it changes nothing for anyone else on the server, and it
persists in the config file as Craft From Storage, so the F1 menu and the in-game button are two
views of the same setting.
Auto-store: dump a haul, walk away
The Autosorter has a deposit box on its front face. Open it, drop in whatever you came home with, and close it - each stack is filed into the chests in range that already hold that item.
- One stack splits across chests: 40 wood will top up a nearly-full wood chest and put the rest in the next one.
- A chest only qualifies if it already contains that exact item, so nothing ever lands somewhere you did not already decide it belongs. Empty chests are never filled.
- Anything with no home stays in the deposit box. Take it out yourself, or leave it there: it is tried again every time the box is closed, so it files itself away once a chest for it exists.
- Only public chests receive items. A Private chest is never filled, not even one you placed yourself - locking a chest is a decision about what goes in it.
- Chests another player currently has open are skipped.
- The box is the size of your own inventory by default, so a full backpack fits in one trip. Admins can resize it; items already inside are never lost to a smaller size - the box keeps room for them until they are sorted out.
Items sitting in the deposit box are deliberately not counted as crafting stock - the box is an inbox, not storage, and anything in it is either about to be filed away or waiting for a home.
Deposit All: empty your pack in one press
Open the deposit box and a Deposit All button takes over the slot vanilla's Place stacks button sits in. One press moves your pack into the box and files it away immediately - no closing the box, no dragging stacks. Place stacks comes straight back on any ordinary chest.
What it never takes:
- Equipped gear.
- Your hotbar - the whole bottom row, whatever is in it.
- Quick slots and equipment slots added by EquipmentAndQuickSlots. That mod keeps its slots in the same grid as your backpack, so they are excluded by asking it which cells are its own; other slot mods are not recognised yet.
- Enchanted gear, unless
Sort Magic Itemsis on - the same rule the sort itself follows, so a legendary is never moved somewhere the sort would then refuse to file it. - Food, if you leave
Deposit All Keeps Foodon. Food is a property rather than an item type - anything that fills a food slot - which is why it stays its own switch. - Anything whose item type is in
Deposit All Ignored Types. That defaults to gear and ammo; clear the entry to deposit every type, or add to it to hold more back.
The Hopper gets the same button, labelled Deposit Materials. It moves only what the Hopper's
stations actually consume: the prefabs listed in Hopper Deposit Items, which defaults to the wood a
charcoal kiln burns and every ore a smelter or blast furnace melts. Add Coal to hand it fuel
directly, or Barley, Flax and Softtissue for the windmill, spinning wheel and eitr refinery.
Unlike the deposit box, it does not spare your hotbar - only equipped items are left alone.
Everything it did take is then sorted exactly as closing the box would sort it, and you get one message saying how much went out and how much is still sitting in the box.
Surtling Core slots
The Autosorter has four Surtling Core slots. Interact with a slot to insert a core, or to take one back out. Cores are stored on the piece itself, replicate to other players, survive reloads, and drop on the ground if the Autosorter is destroyed or deconstructed - they are never lost.
By default the Autosorter stays dormant until at least one core is inserted, and each core extends the link radius (+25m by default, on top of the 20m base). Four cores reach 120m. Both the requirement and the per-core bonus are configurable.
Respects locks and wards
A chest is only linked if you could open it yourself. A chest set to Private is linked only for the player who placed it, a chest set to Group is skipped entirely, and any chest inside a ward you are not permitted in is skipped. Your own ward is fine.
A chest that someone - you or another player - currently has open is left alone until it is closed: its contents are not counted, shown, or spent while it is open, so nobody's chest panel is pulled out from under them.
Auto-store is stricter still: it only ever files items into public chests, so your own Private chests can feed crafting but never receive sorted goods.
Epic Loot support (optional)
If Epic Loot is installed, DvergerAutomation registers itself with it properly rather than patching around it:
- The enchanting table draws from linked chests. Runestones, shards and dust stay in storage instead of your inventory.
- Enchanted gear is protected. Vanilla ingredient consumption matches items by name, and an enchanted item shares its name with the ordinary version - so without this, a recipe could quietly consume a legendary sitting in one of your chests. DvergerAutomation refuses to spend magic items as plain crafting material, and does not count them as such either.
- Auto-store leaves magic items alone by default, for the same reason: a legendary would
otherwise be filed into whatever chest holds the ordinary version. It stays in the deposit box instead.
Turn on
Sort Magic Itemsif you would rather have them stored.
Epic Loot is a soft dependency: not having it installed changes nothing.
Installation (manual)
Multiplayer: every player on the server needs the mod, and versions must match on major and minor. The Autosorter's settings are server-authoritative and only admins can change them.
Building the Autosorter
![]()
Built with the Hammer, in the Crafting category, near a Forge:
| Material | Amount |
|---|---|
| Stone | 20 |
| Bronze | 8 |
| Greydwarf eye | 20 |
| Ectoplasm | 4 |
All costs are refunded on deconstruction.
Configuration
Settings live under BepInEx/config/MidngightsFX.DvergerAutomation.cfg.
| Setting | Default | Range | What it does |
|---|---|---|---|
Enabled |
true |
Master switch for the Autosorter. | |
Scan Radius |
20 |
1-64 | Base radius (meters) in which stations and chests are linked. |
Range Per Core |
25 |
0-100 | Extra radius added per inserted Surtling Core. |
Require Cores |
true |
When on, the Autosorter links nothing until a core is inserted. | |
Auto Store |
true |
Closing the deposit box files its contents into chests that already hold the same item. | |
Sort Magic Items |
false |
When on, enchanted (Epic Loot) items are filed away too instead of staying in the deposit box. | |
Deposit Box Width |
8 |
2-8 | Columns in the deposit box. 8 is the most the container panel can show. |
Deposit Box Height |
4 |
2-8 | Rows in the deposit box. Extra rows scroll. |
Scan Interval |
30 |
5-300 | Seconds between scans. Lower reacts to new chests sooner and costs more. |
Show Storage Counts |
true |
Shows the green +N storage figure next to each ingredient. Client-side. |
|
Craft From Storage |
true |
Whether linked chests are spent from at all. Client-side, and what the button on the crafting panel toggles. | |
Deposit All Keeps Food |
true |
Deposit All leaves food in your pack. Client-side. Meads and other potions are not food and are deposited. | |
Deposit All Ignored Types |
gear and ammo | Item types Deposit All leaves in your pack at the deposit box, comma separated. Client-side. | |
Hopper Deposit Items |
wood and ores | Item prefabs Deposit All moves into the Hopper, comma separated. Client-side. | |
EnableDebugMode |
false |
Verbose logging. Client-side, and hidden behind Advanced. |
Inserting or removing a core relinks immediately rather than waiting for the next scan.
Known issues
- New chests placed inside the radius are not picked up by the crafting pool until the next scan
(up to
Scan Intervalseconds). Reinserting a core forces an immediate rescan. Auto-store is not affected: closing the deposit box always relinks first. - Auto-store runs when you close the deposit box. If you log out or the area unloads with items still inside, they stay there until you open and close it again. They are safe either way - destroying the Autosorter drops them on the ground along with the cores.
Changelog
See CHANGELOG.md.
CHANGELOG
0.8.0
- New piece: the Dverger Hopper
- Dverger Hopper is an iron age improvement that allows automating Furnances & Kilns
- It automatically fills machines in its radius (expandable with surtling cores) and provides a small speedup
- Its inventory will pull back in smelted ores, making them immediately available for crafting from any nearby autosorter
- Fully configurable, range, speed bonus, pice requirements, default scan rate
- Craft-from-storage switch: A GUI button to enable/disable craft from containers
- Deposit All button, which takes over the slot vanilla's Place stacks button sits in whenever one of the mod's own containers is open
- On the Autosorter it deposits your inventory and files it away, leaving equipped gear, the hotbar and quickslots alone
- Which item types it holds back is now a config list, defaulting to gear and ammo (this replaces the old
Deposit All Keeps Ammoswitch) - On the Dverger Hopper it becomes Deposit Materials and moves in wood and ore, from a config list of prefabs
- Ordinary chests keep Place stacks exactly as before
- Fixed: an Autosorter placed on a wooden floor lost its support and broke. It is now an iron piece, so wood holds it up.
0.7.1
- Fixed: gear whose recipe has a Valheim 1.0 upgrader ingredient could not be crafted or upgraded from linked chests - the craft button stayed greyed out even though the chests held everything the panel listed.
- Fixed: crafting that gear at a regular station could spend its upgrader ingredient out of a linked chest, although the station never charges it.
0.7.0
- Ingredient rows in the crafting panel and the build HUD now show how many of each material the
linked chests hold, as a green
+Nafter the required amount. Hovering the row spells it out. The figure counts only what the Autosorter would actually spend: enchanted gear and anything in the deposit box are left out. Turn it off with the new client-sideShow Storage Countssetting. - Fixed: mods that print your own inventory count next to an ingredient (MyLittleUI) were shown
the inventory-plus-chests total instead. Chest stock now only appears in the
+Nfigure. - Fixed: auto-store could duplicate the leftovers it handed back out of the deposit box. Anything with no matching chest now stays in the box instead, and is tried again every time it is closed.
- Fixed: crafting, building and enchanting from storage could take over a chest another player had open, blanking their chest panel and leaving their view of that chest out of date. Open chests are now skipped until they are closed.
0.6.0
- Auto-store: the Autosorter now has a deposit box. Drop goods in, close it, and each stack is filed into the chests in range that already hold that item - splitting across chests as needed. Anything with no home comes back to you. Only public chests are filled; Private chests are never targeted, even your own.
- New settings:
Auto Store(on),Sort Magic Items(off), andDeposit Box Width/Deposit Box Height(default 8x4, the size of your own inventory; minimum 2x2). - Fixed: taking materials out of linked chests while crafting left the per-frame item counts stale for the rest of the frame.
0.5.0
- Beta release.