SlotLock
SlotLock lets a player lock individual inventory slots so items cannot be moved out of them by accident, and it works on the client alone.
What it does
A locked slot refuses to give up its contents when a player clicks, shift-clicks or throws items, which protects things such as a golden backpack from being dropped by mistake. Locked slots can be set in the inventory and in container screens, and they stay locked until the player turns the lock off again.
Because the mod runs on the client only, players can install it on a multiplayer server's client without the server needing anything. Server-side operations ignore locked slots entirely, so the lock is a player-side guard rather than a rule the server enforces. The mod requires Fabric API and is published for Fabric across seven release versions, 1.16.5 – 1.19.2. It is open source under the Mozilla Public License 2.0, and the source code and issue tracker are public.
Key features
Per-slot locking
Any single inventory slot can be locked, so a chosen stack stays in place while other slots are used normally.
Protection from accidental clicks
Shift-clicks, drops and throws that would empty a locked slot are blocked, guarding items the player wants to keep.
Interaction with other mods
When another mod tries to move items through the inventory, locked slots are generally left untouched, though the behavior depends on how that mod is written.
Bug reports
Problems with the lock behavior are reported through the GitHub issue tracker linked from the project page.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Protecting valuable items
A player can lock a backpack or a stack of rare items so a quick inventory sort or a mis-click does not discard them.
Who it’s for: Players who keep important items in their inventory during play and want a guard against losing them to accidental clicks. Storage-focused players who sort often are the main audience.
How it compares
Inventory Profiles Next is open source under the GNU Affero General Public License v3.0 or later, is client-side only and covers Fabric, Forge, NeoForge and Quilt for 1.14.1 – 26.3, which is a much wider range than SlotLock. Trash Slot is a client and server mod under a custom license, with Fabric and Forge files for 1.12.2 – 26.2, so it needs the server side as well.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| SlotLock | Fabric | 1.16.5 – 1.19.2 | Client-side only | 2022-09-04 |
| Inventory Profiles Next | Fabric, Forge, NeoForge and Quilt | 1.14.1 – 26.3 | Client-side only | 2026-09-27 |
| Trash Slot | Fabric and Forge | 1.12.2 – 26.2 | Client and server | 2026-08-29 |
Questions
Does SlotLock need Fabric API?
Does the server have to run SlotLock?
Which game versions does SlotLock support?
In the catalog
SlotLock is one of 4,058 Storage mods on ModsFinder, and one of 2,474 Storage mods for Fabric. 12,559 mods support Minecraft 1.19.2.
More from D4rkness_King
Similar mods
What the author says
I was throwing some items in the trash and accidentally clicked in my golden backpack with 1 hour worth of ores. Due to this being a client-side mod, all server-side operations will completely ignore your locked slots. The following list of things will not work and will not be fixed.
Official listing
- Modrinth page
- modrinth.com/mod/slotlock
- Owner
- D4rkness_King
- Published
- 2021-06-05
- Updated on Modrinth
- 2022-09-04
- Facts verified
- 2026-10-15
