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.
CollectAll
Open a chest, click Collect, click an item: every other stack of that item in nearby chests moves into this chest. Alt+click does it in one step.
By dcarrigg
| Date uploaded | a day ago |
| Version | 1.0.5 |
| Download link | dcarrigg-CollectAll-1.0.5.zip |
| Downloads | 12 |
| Dependency string | dcarrigg-CollectAll-1.0.5 |
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.2360README
CollectAll
A BepInEx mod for Valheim. Open a chest, click Collect, click an item: every other stack of that item in chests nearby moves into the chest you have open.
Using it
- Open the chest you want things gathered into.
- Click Collect in the top-right corner of the chest panel, next to the chest's name. It changes to Pick item...
- Click an item, in the chest or in your own inventory. All other stacks of that item (any quality) in chests within 60 m move into this chest. Smaller piles are taken first, and existing stacks are topped up before new slots are used.
Full stashes are left alone (on by default): a chest that is completely full and holds nothing but that item is never taken from, so collecting in a second chest can't drain a finished stash.
Bigger pile wins (off by default, SkipBiggerPiles): a chest that holds more of the item than the one you're collecting into is left alone. Items then only ever flow toward your biggest pile, so collecting in two chests in turn can't shuffle them back and forth.
Shortcut: Alt + click an item in the chest does it in one step.
Right-click or Esc cancels pick mode. The message in the middle of the screen says what happened:
Collected 120 Fine wood from 3 chestsChest is full - 45 more still elsewhereNo other Fine wood in chests within 60 mThe only other Fine wood is in full Fine wood chests - left aloneOther chests have more Fine wood than this one(withSkipBiggerPileson)2 chests skipped (open, or another player's)
Your own inventory is never touched; only other chests are emptied.
The button is pinned to the top-right corner of the chest panel, so it stays put whatever buttons the game or other mods (QuickStackStore etc.) add elsewhere. Button.OffsetX / OffsetY nudge it.
What it won't touch
- Chests someone has open
- The Obliterator, carts, ships, tombstones
- Chests you don't have access to (other players' private chests, chests inside a ward you aren't on)
- In multiplayer: chests another player's game controls (always fine in single player; usually fine when you're alone in your base).
ClaimChestOwnershiplets it take control of those (never ones someone has open).
Config
BepInEx/config/dcarrigg.collectall.cfg (r2modman: Config editor):
| Setting | Default | |
|---|---|---|
Radius |
60 | How far from the open chest to look (m). The game only keeps about 64 m around you loaded |
AltClickShortcut |
on | Alt + click collects straight away |
SkipFullChests |
on | Never take from a chest that's completely full and holds nothing but that item. One stray item, a partial stack or an empty slot and it's collected from as normal. Turn off to move a whole stash into a new chest |
SkipBiggerPiles |
off | Bigger pile wins (see above) |
ClaimChestOwnership |
off | Multiplayer only, see above |
Button.Text |
Collect | Button label |
Button.OffsetX / OffsetY |
0 | Nudge the button if it overlaps another mod's button |
Safety
Every move uses the game's own inventory code. After each move, both chests are re-counted and any difference is repaired, so items are never duplicated or lost, even if another mod's save hook throws an error.