SlotLock
Slot modes for your inventory and every chest: keep an item in its slot, or reserve a slot for one item or a category (wood, ores, rocks, hides, trophies, idols...), or a whole chest. Shared by all players. Animated help with a simulator.Slot Lock — a place for everything, in your inventory and in every chest
35 languages: in-game texts follow your game's language — English · Svenska · Français · Italiano · Deutsch · Español · Русский · Română · Български · Македонски · Suomi · Dansk · Norsk · Íslenska · Türkçe · Lietuvių · Čeština · Magyar · Slovenčina · Polski · Nederlands · Português (Portugal) · Português (Brasil) · 简体中文 · 繁體中文 · 日本語 · 한국어 · हिन्दी · ไทย · Hrvatski · ქართული · Ελληνικά · Srpski · Українська · Latviešu (English otherwise).
Eggs filling the whole chest because the wolf meat ran out? Wood swallowing your last free slots on every trip? Give a slot a mode: it keeps its item, or it is reserved for one item only — or for a whole family of items.
2.1.1, important fix: items already in a chest that did not match its rule could vanish, then be lost after a sort. Fixed: please update (players and server).
New in 2.5.0: a new category, Idols (lime green frame: the Battle and Protection idols found in chests and ruins). The help's Categories tab now shows the thirteen families in two columns.
New in 2.4.0: three more categories: Rocks & minerals (slate grey: stone, flint and the other rocks), Hides & leather (tan) and Trophies (turquoise). The help's Categories tab now shows the twelve families in two columns.
New in 2.3.0: two categories for wood: Common wood (wood and core wood, which fill a chest in no time) and Rare wood (every other kind). Give a slot or a whole chest to either; seeds, cones and resin stay out.
New in 2.2.0: a Categories tab in the help: the seven families with their colours, what each one holds — only the items you have already discovered, so nothing from later in the game is spoiled — and how to give a slot or a whole chest to a family.
New in 2.1.0: categories (a slot for raw meat, ores, metal bars, mead bases…, each with its own frame colour), a whole chest reserved in one go (Shift+K), a search that ignores accents and ligatures, and fixes for InventorySlots and OttoStash players.

The two modes
- Mode 1, kept (cyan frame, lock "1"): the item stays in its slot. Sorting, Place stacks, quick stack and store all leave it alone, and the slot stays reserved for its item even when empty. Once it is full, extra items go to free slots as usual.
- Mode 2, reserved (gold frame, lock "2"): the slot takes only its item. Once your mode 2 slots for an item are full, automatic transfers stop there: no more auto pickup of that item, no more middle click or vacuum of it into that chest. Exceptions: a mode 1 slot for the same item, or a stack of it you already put in a free slot.
- Free: no rule, as in the game.
Categories (2.1.0)
A slot can wait for a whole family of items instead of one, in mode 1 or mode 2. Its frame takes the family's colour, and when empty it shows, in turn, the items of the family you already know.
| Category | Frame | What goes in |
|---|---|---|
| Raw meat & fish | red | what the cooking stations cook into food, and the fish you catch |
| Dishes to bake | pink | what the oven bakes into food (bread dough, uncooked pies…) |
| Meals | orange | food you cook or craft |
| Vegetables, fruits & mushrooms | green | what you harvest that is eaten or cooked (berries, carrots, turnips, onions, mushrooms, honey…) |
| Common wood (2.3.0) | fir green | wood and core wood, the everyday kinds that fill a chest fast |
| Rare wood (2.3.0) | royal blue | every other wood that chopped trunks give (fine wood…), but no seeds, cones or resin |
| Ores | brown | what goes into the smelter and the blast furnace |
| Metal bars | silver | what comes out of them, and bronze |
| Rocks & minerals (2.4.0) | slate grey | stone, flint and the other rocks you mine or pick up |
| Hides & leather (2.4.0) | tan | deer hide, leather scraps and the other hides and pelts that beasts leave behind |
| Trophies (2.4.0) | turquoise | the trophies of defeated creatures |
| Mead bases | violet | what the fermenter takes |
| Idols (2.5.0) | lime green | the Battle and Protection idols found in chests and ruins |
The families are read from the game itself (its cooking stations, oven, smelters, fermenter, harvests, recipes, fallen trunks, stone building pieces and what creatures drop), so items added by other mods join their family too. An item belongs to one family only. Hover a category in the menu to see the items of it you have already discovered; the help's Categories tab lists them too. Items you have not found yet are never shown.
A whole chest (2.1.0)
Shift+K on any slot of an open chest (or the Whole chest box of the menu) reserves the whole chest for one item or one category: an ore chest, a mead base chest… Automatic transfers bring it only that, other items are refused even by hand (those already inside stay in their slots and can be taken out), and the chest accepts its items even when empty (OttoStash's middle click and vacuum find it). Slots you set one by one keep their own rule. Its slots get a paler frame of the rule's colour; remove the rule from the same menu.

What the slots look like. Top: real slots from a player's inventory, zoomed (mode 1 kept, holding its item or waiting for it under chains; mode 2 reserved, the same). Bottom: a mock-up of 2.1.0's category slots and of a whole chest reserved for ores.
How to use it
- Open your inventory (or a chest), hover a slot and press K (configurable): free, mode 1, mode 2, then free again.
- On an empty free slot, K opens the menu of known items: categories first, then your items. Search (accents and ligatures don't matter, several words in any order), then left click for mode 1, right click for mode 2.
- Shift+K on a chest slot: the same menu, for the whole chest.
- An empty reserved slot shows the item it waits for as a ghost, under the chains and the lock of the mod's icon. An item's tooltip says the rule of its slot.
The pictures are from a French game; what they say is translated below each one. They were taken with 2.0.0: the menu now also starts with a row of categories.

The menu of known items — press K on an empty free slot. Title Réserver cette case: "Reserve this slot". Clic gauche : mode 1 — gardée…: "Left click: mode 1 — kept, extra ones go elsewhere"; Clic droit : mode 2 — réservée…: "Right click: mode 2 — reserved, nothing beyond once full". Chercher un objet: "Search an item"; Objets connus · 542: "Known items · 542", every item your character has found. Behind the menu, your inventory: cyan frames are kept slots (mode 1), gold frames reserved slots (mode 2), each with a numbered lock; an empty reserved slot shows its item as a ghost, under chains.
Animated help
The glowing ? Help button, just above your inventory's top-left corner, opens a help window in your game's language:
- The modes: three animated cards (free, mode 1, mode 2) and the filling order.
- Categories (2.2.0, thirteen families in two columns since 2.5.0): the families and their colours, what each holds (only what you have already discovered; a long list scrolls in its box), a slot or a whole chest for a family, and which slots fill first.
- Simulator: a small bag, two chests and loot on the ground, run by the mod's real rules. Change a slot with K, press Place stacks, Take all or auto pickup, click the loot: items fly where the game would put them, a log says why. Nothing touches your real items.
- Situations: six cases replayed step by step (copper and its kept slot, flint with a quota, wood at pickup, resin that stays put, a chest shared by everyone, chests pulling loot).
- Keys, and a tooltip on every slot and button.
Everything that only exists with OttoStash is marked in purple. The button glows until you open the help once; HelpButton = false hides it.

Help › Simulator — your bag (Ton sac), two chests (Entrepôt: storehouse, Atelier: workshop) and loot on the ground (Au sol, près de toi: "On the ground, near you"), all run by the mod's real rules. Here Objets similaires ("Place stacks") was pressed on the storehouse: the copper ore went into its kept slot, the stone and the tin onto their stacks, and the log (Ce qui vient de se passer: "What just happened") says where each item went and why. Legend: Mode 1 · case gardée (kept slot), Mode 2 · case réservée (reserved slot), Objet attendu (expected item), Arrivée (arrival), Refusé (refused). The panel on the right (Comment s'en servir: "How to use it") explains it in four steps. Buttons marked OttoStash, in purple, only exist in game if you have it. Nothing here touches your real items.

Help › Situations — six cases replayed step by step: Le cuivre et sa place gardée (copper and its kept place), Le silex en quota (flint with a quota), Le bois limité au ramassage (wood limited at pickup), La résine qui ne bouge pas (resin that stays put), Un coffre réglé pour tous (a chest set up for everyone) and L'aspiration des coffres (chests pulling in loot, with OttoStash). Voir ("Show") plays one in the simulator.

A situation, step by step — La résine qui ne bouge pas (resin that stays put), step 2 of 3: Place stacks toward the storehouse sends the free stack of resin away, while the resin in its kept slot stays in your bag (last line of the log: "stays in place — its slot is set"). Précédente, Étape suivante, Quitter la situation: "Previous", "Next step", "Leave the situation".
Where items go
When an item comes in (auto pickup, Place stacks, OttoStash's middle click or vacuum, InventorySlots' quick stack), it fills:
- its own slots: mode 2, then mode 1,
- then the slots of its category: mode 2, then mode 1,
- then free slots, when allowed: in a chest, only if the chest has a mode 1 slot for it or already holds it in a free slot; in your inventory, unless it has mode 2 slots and nowhere else to go.
A chest with a slot reserved for an item accepts that item even when it holds none of it. A slot reserved for another item is never taken, not even by hand: dropping another item there is refused. Your own moves (drag, shift click, take all, crafting) can always use free slots.
Chests are shared
A chest's slot modes are saved in the world, so every player sees and follows the same rules. Install the mod on every player and on the server.
Works with
- OttoStash (optional: SlotLock works on its own with the game's Place stacks, Take all and auto pickup): OttoStash adds storing into every nearby chest at once (store key, middle click) and chests pulling in loot. A slot of your inventory in mode 1 or 2 is also an OttoStash favorite slot, so its store leaves it alone; its middle click and vacuum follow the chest's modes. Its "Slot is favorited" tooltip line no longer shows on chest items, and on a set slot of your bag, SlotLock's line in your language replaces it.
- InventorySlots: its sort (your inventory and chests) leaves set slots in place and puts each reserved item back in its slot; its quick stack fills chests in the same order; with its hotbar switch (key under Esc), slot rules move with the rows.
Coming from 1.x
Your locked slots become mode 1 slots, with the same reserved items. To give a slot another item, use K or the menu: dropping another item into a reserved slot is now refused.
Configuration
BepInEx/config/com.Azura.slotlock.cfg:
| Setting | Default | Meaning |
|---|---|---|
Enabled |
true |
Slot modes are applied |
LockKey |
K |
Key for the hovered slot: free, mode 1, mode 2; the menu of known items on an empty free slot |
WholeChestKey |
LeftShift + K |
On a slot of the open chest: the menu, for the whole chest |
ContainerSlots |
true |
Slot modes in chests too (saved in the world) |
SyncWithOttoStash |
true |
A slot of your inventory in mode 1 or 2 is also an OttoStash favorite slot |
HelpButton |
true |
Shows the « ? Help » button of the inventory |
Mode1Color |
cyan | Frame of mode 1 slots |
Mode2Color |
gold | Frame of mode 2 slots |
GhostOpacity |
0.35 |
Opacity of the expected item in an empty reserved slot |
Installation
- With a mod manager (r2modman, Thunderstore Mod Manager): click Install. BepInExPack Valheim is installed with it.
- By hand: install BepInExPack Valheim, then put
SlotLock.dllinValheim/BepInEx/plugins/.
Tested with Valheim 1.0.21 and BepInExPack Valheim 5.4.2350.
En français
Des œufs plein le coffre parce que la viande de loup est épuisée ? Le bois qui avale vos dernières cases à chaque sortie ? Donnez un mode à une case : elle garde son objet, ou elle est réservée à un seul objet — ou à toute une famille d'objets.
2.1.1, correction importante : des objets déjà dans un coffre qui ne suivaient pas sa règle pouvaient disparaître, puis être perdus après un tri. C'est corrigé : mettez à jour (joueurs et serveur).
Nouveau dans la 2.5.0 : une nouvelle catégorie, Idoles (cadre vert anis : les idoles de Combat et de Protection trouvées dans les coffres et les ruines). L'onglet Catégories de l'aide montre maintenant les treize familles en deux colonnes.
Nouveau dans la 2.4.0 : trois catégories de plus : Roches et minéraux (gris ardoise : la pierre, le silex et les autres roches), Peaux et cuirs (fauve) et Trophées (turquoise). L'onglet Catégories de l'aide montre maintenant les douze familles en deux colonnes.
Nouveau dans la 2.3.0 : deux catégories pour le bois : Bois communs (le bois et le bois robuste, qui remplissent un coffre en un rien de temps) et Bois rares (toutes les autres sortes). Une case ou tout un coffre pour l'une ou l'autre ; graines, pommes de pin et résine restent dehors.
Nouveau dans la 2.2.0 : un onglet Catégories dans l'aide : les sept familles et leurs couleurs, ce que contient chacune — seulement les objets que vous avez déjà découverts, pour ne rien dévoiler de la suite du jeu —, et comment donner une case ou tout un coffre à une famille.
Nouveau dans la 2.1.0 : les catégories (une case pour la viande crue, les minerais, les lingots, les bases d'hydromel…, chacune avec la couleur de son cadre), tout un coffre réservé d'un coup (Maj+K), une recherche qui ignore accents et ligatures, et des corrections pour les joueurs d'InventorySlots et d'OttoStash.
- Mode 1, gardée (cadre cyan, cadenas « 1 ») : l'objet reste dans sa case ; le tri, « Placer les piles », le rangement rapide et « tout ranger » le laissent tranquille, et la case lui reste réservée même vide. Une fois pleine, le surplus va dans les cases libres.
- Mode 2, réservée (cadre doré, cadenas « 2 ») : la case ne prend que son objet. Quand les cases du mode 2 d'un objet sont pleines, les transferts automatiques s'arrêtent là : plus de ramassage automatique de cet objet, plus de clic molette ni d'aspiration vers ce coffre. Sauf s'il existe une case mode 1 pour le même objet, ou une pile déjà posée en case libre.
- Catégories : une case peut attendre toute une famille, en mode 1 ou 2 : viande et poisson crus (rouge), plats à cuire au four (rose), repas (orange), légumes, fruits et champignons (vert), bois communs (vert sapin), bois rares (bleu roi), minerais (brun), lingots (argent), roches et minéraux (gris ardoise), peaux et cuirs (fauve), trophées (turquoise), bases d'hydromel (violet), idoles (vert anis). Les familles sont lues dans le jeu lui-même (foyers, four, fonderies, fermenteur, cueillettes, recettes, troncs abattus, pièces de pierre, butin des créatures) : les objets des autres mods y entrent aussi. Un objet n'est que dans une famille. Vide, la case fait défiler ceux de sa famille que vous connaissez déjà ; le menu et l'aide ne montrent jamais un objet que vous n'avez pas encore trouvé.
- Tout un coffre : Maj+K sur une case du coffre ouvert (ou la case « Tout le coffre » du menu) le réserve à un objet ou à une catégorie : coffre à minerais, coffre à bases d'hydromel… Le reste est refusé, même à la main (ce qui s'y trouvait déjà reste à sa place et peut être repris) ; les cases réglées une à une gardent leur règle. Ses cases ont un cadre plus pâle de la couleur de la règle ; on la retire depuis le même menu.
- Touche K (réglable), en survolant une case de l'inventaire ou du coffre ouvert : libre, mode 1, mode 2, puis libre. Sur une case vide et libre, K ouvre le menu des objets connus : les catégories d'abord, puis vos objets ; la recherche ignore accents et ligatures (« oeuf » trouve « Œuf ») et prend plusieurs mots dans n'importe quel ordre ; clic gauche pour le mode 1, clic droit pour le mode 2. Une case réservée vide montre son objet en fantôme, sous les chaînes et le cadenas ; la bulle d'un objet dit la règle de sa case.
- Ordre de remplissage : les cases de l'objet (mode 2, puis mode 1), puis celles de sa catégorie (mode 2, puis mode 1), puis les cases libres quand c'est permis. Un coffre qui réserve une case à un objet l'accepte même s'il n'en contient pas. Une case réservée à un autre objet n'est jamais prise, même à la main ; vos propres gestes (glisser, clic Maj, tout prendre, artisanat) peuvent toujours aller en case libre.
- Aide animée : le bouton lumineux « ? Aide », juste au-dessus du coin haut-gauche de l'inventaire, ouvre une fenêtre dans la langue du jeu : les modes en cartes animées, les catégories (les familles, ce que contient chacune parmi ce que vous avez découvert, le coffre entier ; une longue liste défile dans son cadre), un simulateur (un petit sac, deux coffres et du butin au sol, avec les vraies règles du mod ; rien ne touche à vos vrais objets), six situations rejouées pas à pas, les touches, et une bulle sur chaque case. Ce qui n'existe qu'avec OttoStash est marqué en violet. Réglage
HelpButton. - Coffres partagés : les modes d'un coffre sont enregistrés dans le monde, les mêmes pour tous. Installez le mod chez chaque joueur et sur le serveur.
- Avec OttoStash (facultatif) et InventorySlots : SlotLock marche seul avec « Objets similaires », « Prendre tout » et le ramassage du jeu ; OttoStash ajoute le rangement vers tous les coffres proches et l'aspiration. Clic molette, aspiration, tri et rangement rapide suivent les modes ; le changement de barre d'InventorySlots (touche sous Échap) emporte les règles avec les lignes ; la ligne « Slot is favorited » d'OttoStash ne s'affiche plus sur les objets des coffres.
- Depuis la 1.x : vos cases verrouillées deviennent des cases en mode 1. Pour changer l'objet d'une case, utilisez K ou le menu.
