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.
ExtraSlotsDepositGuard
Stops Nearby Crafting's quick-deposit hotkey from emptying Extra Slots equipment, quick, food, ammo and misc slots.
By PICS0UL
| Date uploaded | 2 weeks ago |
| Version | 1.0.0 |
| Download link | PICS0UL-ExtraSlotsDepositGuard-1.0.0.zip |
| Downloads | 52 |
| Dependency string | PICS0UL-ExtraSlotsDepositGuard-1.0.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.2350shudnal-ExtraSlots
More inventory slots dedicated for equipment, food, ammo and misc items. Extra utility slots. Quick slots. Custom slots API. Player inventory resize. Gamepad friendly. Slot obtaining progression.
Preferred version: 1.2.3README
ExtraSlots Deposit Guard
Your quick-deposit hotkey should fill chests, not empty your gear.
A small compatibility patch between Nearby Crafting and Extra Slots. Install it and forget about it.
The problem
Nearby Crafting's Mass Quick Deposit hotkey (F6 by default) is great: one keypress and every matching stack in your inventory flies into the chests around you.
Extra Slots keeps your equipment, quick, food, ammo and misc slots inside that same inventory. Nearby Crafting can't tell them apart from ordinary backpack space.
So you walk up to your storage, press F6, and your quiver empties into the ammo chest. Your cooked food goes into the food chest. Your spare trophies and coins vanish into the misc chest. You find out in the middle of the next fight.
The fix
This mod holds those slots back. Press F6 exactly like before — your regular inventory deposits, your slots stay put.
| Stays with you | Still deposits |
|---|---|
| Equipment slots | Your regular inventory |
| Quick slots | Extra Slots' extra rows |
| Food slots | Everything else, as before |
| Ammo slots | |
| Misc slots (trophies, fish, coins, keys, quest items) | |
| Custom slots from other mods (backpacks, quivers, rings…) |
Nothing else changes. The deposit still reaches every eligible chest in range, and Nearby Crafting's on-screen message ("Quick Deposit: 47 items deposited into 3 chests") stays accurate — held-back items simply aren't counted.
Note that Extra Slots' extra inventory rows are ordinary inventory and still deposit normally. Only true slots are protected.
Why this needs a separate mod
Extra Slots already protects its slots from Valheim's built-in "stack all" button. But Nearby Crafting doesn't use the vanilla stacking code — it has its own deposit routine, which Extra Slots has never heard of.
Neither mod is doing anything wrong. They just don't know about each other, so the fix belongs in a third mod rather than a fork of either one.
Requirements
- BepInEx
- Nearby Crafting by IPA38
- Extra Slots by shudnal
Both are hard dependencies. If either is missing, this mod does nothing at all — it won't break anything, it just has no job to do.
Client-side only. No server install needed, and it doesn't matter what other players have.
Configuration
Everything is protected by default, so most people never need to touch this.
BepInEx/config/com.pics0ul.valheim.extraslotsdepositguard.cfg
[General]
Enabled = true
[Protected Slots]
QuickSlots = true
MiscSlots = true
AmmoSlots = true
FoodSlots = true
EquipmentSlots = true
[Debug]
DebugLogging = false
Turn an individual category off if you actually want the hotkey to drain it. For example, AmmoSlots = false lets F6 dump spare arrows into your ammo chest while still protecting everything else.
EquipmentSlots also covers extra utility slots and any custom slots added by other mods through the Extra Slots API.
Settings can be changed in a config manager in-game, or by editing the file.
How it works
For the curious — you don't need to read this to use the mod.
While a quick-deposit is running, the mod takes a snapshot of what's currently sitting in your Extra Slots slots (via Extra Slots' public API) and cancels any attempt to move those particular items into a chest. The moment the deposit finishes, the mod goes completely dormant again.
No items are ever moved, hidden, or temporarily pulled out of your inventory to achieve this, so there's no window in which a crash or another misbehaving mod could lose them.
If a future update to either mod changes what this patch hooks into, it logs an error and disables itself rather than half-working. Nearby Crafting and Extra Slots keep running normally; you'd just lose the protection until this mod catches up. Please report it if that happens.
Troubleshooting
Set DebugLogging = true and check BepInEx/LogOutput.log. On a healthy startup you'll see:
[Info : ExtraSlots Deposit Guard] ExtraSlots Deposit Guard 1.0.0 loaded; protecting Extra Slots slots from quick-deposit.
With debug logging on, each held-back item is reported as it happens.
Credits
This mod contains no code from either mod it patches. It reaches Extra Slots through that mod's public API.
- Nearby Crafting by IPA38
- Extra Slots by shudnal
Thanks to both for making mods worth making compatible.
License
MIT — see LICENSE. Fork it, fix it, keep it alive if I go quiet.
CHANGELOG
Changelog
1.1.0
- Added support for StoreAndCraft. Its dump hotkey (
.) and single-item store (middle click) no longer take items out of Extra Slots slots. - Nearby Crafting and StoreAndCraft are now both optional. The mod detects whichever you have installed and guards those; only Extra Slots is required. Previously Nearby Crafting was a hard dependency and the mod would not load without it.
- The startup log now names the deposit sources it is guarding.
- Host detection now asks the chainloader before probing for types, so a host you do not have installed no longer leaves a HarmonyX "could not find type" warning in the log.
- Debug logging now tags each held-back item with the action that tried to take it (
quick-deposit,dumporstore-one).
1.0.1
- Added a link to the source repository: https://github.com/PicSoul/ExtraSlotsDepositGuard
- No functional changes. If 1.0.0 is working for you, there is no need to update.
1.0.0
- Initial release.
- Nearby Crafting's Mass Quick Deposit hotkey no longer deposits items held in Extra Slots equipment, quick, food, ammo and misc slots.
- Per-category toggles so individual slot groups can opt back in.