Source-checkedQuality of life & UI

SlotLock

by Cynera · for Valheim

Lock inventory slots so Stack Items never dumps them into a chest. Compatible with ValheimPlus AutoStack.

403Downloads
49d agoLast updated
BepInExLoaders
ThunderstoreSource

About SlotLock

From Thunderstore

Lock inventory slots so Stack Items never dumps them into a chest. Compatible with ValheimPlus AutoStack.

SlotLock

Lock individual inventory slots so Stack Items never puts them in a chest.

You keep your pickaxe, hammer, food and portal wood exactly where you put them, and still get to mash the stack button on every chest in the base.

Usage

Hold Left Alt and left-click a slot to lock or unlock it. Locked slots get a gold frame. That's the whole mod.

Locked slots are ignored by:

  • the Stack Items button in the chest window
  • the hover-a-chest and press the stack key shortcut
  • ValheimPlus AutoStack, including its sweep across every nearby chest

Everything else still works normally — you can drag items out of a locked slot by hand, equip them, drop them, and Take All is unaffected.

Compatibility

Client-side only. It does not need to be installed on the server, and it does not need to match between players — lock whichever slots you like, your friends lock theirs.

Tested alongside ValheimPlus 0.10.1.1 with [AutoStack] enabled = true.

SlotLock hooks Inventory.StackAll with a prefix and a finalizer, and deliberately does not use a transpiler there, because ValheimPlus transpiles that same method. Its prefix runs at Priority.First so ValheimPlus' "stacked N items" count stays correct.

If you use QuickStackStore, you probably don't need this — its favouriting feature covers the same ground and more. SlotLock exists to be a small, single-purpose alternative that stays out of ValheimPlus' way.

Configuration

BepInEx/config/cynera.SlotLock.cfg

| Setting | Default | What it does | | --- | --- | --- | | ToggleModifier | LeftAlt | Hold this and left-click a slot to lock it | | ProtectHotbarRow | false | Treat the entire hotbar row as locked | | ShowOverlay | true | Draw the frame on locked slots | | OverlayColor | gold | Colour of that frame | | VerboseLogging | false | Log each withheld item |

Which slots you locked is saved per character, in BepInEx/config/SlotLock/<character>_<id>.txt. Deleting that file clears your locks.

Upgrading from 1.0.0

1.0.1 renamed the plugin GUID, and BepInEx names a config file after the GUID, so the settings file moved from introvertedcats.slotlock.cfg to cynera.SlotLock.cfg. The mod carries your settings across the first time it loads and removes the old file; there is nothing to do by hand. Your locked slots are unaffected — they were never stored under the GUID.

Known limitations

  • The lock frame shows in the inventory screen, not on the on-screen hotbar HUD.
  • Locks are per character, not per world.

Source

<https://github.com/Cynera/mods-valheim-slotlock>

Please join the Discussions if you have questions or bugs!

Issues and pull requests welcome.

License

MIT.

Highlights

From source data

Loaders

Runs on BepInEx.

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 49d ago.

SlotLock on Nxeon

From our catalogue
One-click install
Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
Server type needed
BepInEx
Server load
light
Smallest plan we suggest
Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.0.1, released 2026-09-16

Game versions by loader

LoaderGame versionsNewest
BepInEx

From 2 recorded builds of SlotLock.

Recent builds

BuildReleasedGame versionsLoaders
1.0.12026-09-16n/aBepInEx
1.0.02026-09-15n/aBepInEx

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run SlotLock on a Valheim server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Thunderstore as “Tweaks”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Compatibility

Game
Valheim
Loaders
BepInEx
Requires
One-click install needs a BepInEx server.

Verified at the source

  • ✓ThunderstoreOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorCynera, as published on Thunderstore
  • ✓LicenseNot published by the sourceFree

SlotLock, answered

Generated from the mod’s own source data.

Which loaders does it support?

BepInEx.

Is it free?

Yes. SlotLock is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run SlotLock on a Valheim server.

Deploy in about a minute from $9.99 a month, then add SlotLock in one click.