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.
BetterChests
Enhances chests with additional features like sorting and auto-depositing!
| Date uploaded | a week ago |
| Version | 0.3.2 |
| Download link | Aestelwen-BetterChests-0.3.2.zip |
| Downloads | 159 |
| Dependency string | Aestelwen-BetterChests-0.3.2 |
This mod requires the following mods to function
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.2denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2360README
BetterChests
Enhances chests with additional features like sorting and auto-depositing!


| Configurable Key | Action |
|---|---|
R |
Take all: move everything in the open chest into your inventory. |
T |
Place stacks: move items, except marked ones, onto matching stacks in the open chest. |
F |
Deposit all: move everything except your hotbar, equipped and marked items into the open chest. |
G |
Sort the open chest. |
Alt + Right-click |
Mark or unmark an item in your inventory to keep it when depositing all or placing stacks. |
| Mouse wheel | Change the amount by one when splitting a stack (Shift+click). |
Auto Deposit
Chests standing close together form a group, such as a row or a stack of chests. Dropping an item near any chest in a group stores it in them, prioritising chests which already contain that item.
Only chests you could open yourself are used: not private chests of other players, chests inside someone else's ward, or chests another player has open.
Deposit All
The open chest gets a Deposit all button under Take all. It moves everything in your inventory into the chest, except your hotbar (the top row of your inventory) and anything you have equipped, so you can empty your bags after an adventure without losing your gear. To keep other items too, such as your food, hold Alt and right-click them in your inventory. Marked items are also kept by Place stacks.
Sort
The open chest gets a Sort button under Place stacks. Sorting merges partial stacks, then groups related items together, in this order: wood, stone and minerals, ores, metals, creature parts, valuables, seeds, crops, raw meat and fish, food, meads, then ammo, weapons, shields, tools, armour, utility items and trophies.
Split Stack
The split stack dialog gets - and + buttons either side of the slider to change the amount by one, and so does the mouse wheel.
Configuration
Settings are in the BepInEx config file javidahmed64592.betterchests.cfg.
License
This project is licensed under the MIT License - see the LICENSE file for details.
CHANGELOG
Changelog
0.6.0
-
Chest panel redesign. The chest's name and a new search bar sit at the top, with all five buttons in one row underneath: Take all, Restock, Deposit all, Place stacks and Sort.
-
Search the chest group. Typing in the search bar shows matching items from every chest in the group as one grid. Click to take a stack, Shift + click to split it, and right-click to eat, drink or equip it, straight from the chest it's in. A red cross clears the search.
-
Buttons act on the whole group while searching. Take all takes every result. Place stacks and Deposit all put items into the chests that already hold them before the open chest, as do Ctrl + click and dragging onto the results. Sort gathers each result into the chest holding the most of it.
-
Restock (Y or the button) tops up every partial stack you carry from the chest's group.
-
Keys work while looking at a chest, without opening it, with a message and a sound saying what moved. While they act, they don't also trigger the game's or other mods' bindings for the same key (such as the Forsaken power on F). They can be turned off in the new
Chest Keysconfig section. -
Smarter sorting, worked out from the game's own data so Deep North and other mods' items sort sensibly:
- crops by tier;
- cooked food by the stat it raises most;
- armour by set, then slot;
- weapons by class;
- meads by effect;
- moulds next to the gear they make;
- upgrade kits by kind and tier;
- separate groups for bars, metal parts and hides.
The new
betterchests_sortinfoconsole command logs where every item sorts. -
Fixed Place stacks moving items out of your hotbar. It now keeps the same items as Deposit all.
-
The README has been rewritten around chest groups, and the Harmony patches now live in a
Patchesfolder.
0.5.0
- Items in an open chest that another chest in its group also holds get a blue frame, so you can spot items worth gathering into one chest.
- Hovering over an item in the open chest makes the other chests in its group that hold it glow, and its tooltip says how many of them there are and how much they hold.
- Hovering over an item in your inventory does the same for every chest in the groups within auto deposit range of you, whether or not a chest is open.
- Other players' private chests and chests in someone else's ward are never counted. Nothing is moved for you.
- Added the
Show Duplicatessetting to turn this off. - Moved the source files into feature folders (
Core,Deposit,Duplicates,Sorting,UI). No change in behaviour.
0.4.1
- The wardrobe is now shown as 10 columns by 5 rows instead of 5 by 10, so all of it fits without a scroll bar. The chest panel widens to fit it.
0.4.0
- Auto deposit now asks a chest's owner for the chest the same way opening a chest does, instead of taking it over. A chest another player has open is skipped, and two players can no longer change a chest's contents at the same time. This also works when the other player doesn't have the mod.
- Opening a chest just as an item is being stored in it still opens the chest.
- The auto deposit
Radius,Cluster GapandDelayare now synced from the server when it has the mod.EnabledandThrow Anglestay your own choice. - Buttons, key hints and messages can now be translated (
Translations/English.json). - Added a CI check that the version matches in every file.
- Moved
package.shinto.github/scriptsand made it the same for every mod: the name, version and DLL now come frommanifest.jsonand the.csproj.
0.3.2
- Items marked to keep (Alt + right-click) now also stay in your inventory when using Place stacks, not just Deposit all.
0.3.1
- Fixed auto deposit never storing dropped items: the hook that starts watching a dropped item never ran.
- When a dropped item is left on the ground, the reason is written to the BepInEx log.
0.3.0
- Dropped items now land on the ground and lie there for 3 seconds before being stored, so other players can pick them up first. Previously they went straight into the chest.
- The distance to a chest is now measured from where the item lands, not from the player.
- Only chests in the direction you throw an item are used (within 60 degrees of the way you face), so items dropped with your back to a chest stay on the ground.
- Chests close together count as one group: an item that lands near one of them can go into any of them, filling chests that already hold it first.
- Lowered the default auto deposit radius from 6m to 4m.
- Added the Cluster Gap, Throw Angle and Delay settings.
0.2.1
- Lowered the default auto deposit radius from 10m to 6m, and the maximum from 50m to 12m.
0.2.0
- Items in your inventory can be marked to stay behind when using Deposit all: hold Alt and right-click (Mouse 1) them. Marked items get a gold frame.
- The keep key can be changed in the config file.
0.1.1
- Declared the mod as client side to Jotunn, so servers and other players are never required to have it installed.
0.1.0
- Initial release.
- Dropped items are stored in nearby chests, preferring chests that already hold the item. They are shown flying into the chest.
- Added a Sort button to the chest panel, which merges stacks and groups related items together (wood, stone, ores, metals, seeds, crops, food, gear and so on).
- Added a Deposit all button to the chest panel, which moves everything except the hotbar and equipped items into the chest.
- The chest panel grows to fit the new buttons and every row of big chests.
- Added keys laid out like the chest buttons while a chest is open: take all (
R), place stacks (T), deposit all (F) and sort (G). - Added -/+ buttons to the split stack dialog, and the mouse wheel changes the amount too.
- The keys are shown in the inventory key hints and can be changed in the config file.