ModsFinder

Lock Slot

by cactoz

Lock Slot lets players lock individual hotbar slots so that items in them cannot be dropped, swapped or moved out of the inventory.

FabricClient-side onlyMIT LicenseOpen source26.2

What it does

Pressing L on a hotbar slot toggles its lock, and the lock can be rebound in the settings. A locked slot ignores the Q and Ctrl+Q drop keys, the F key that swaps items into the offhand, shift-clicks, number-key swaps and inventory drags, so the item stays where it was put. A gold-bordered L marks each locked slot, and the corner where the marker appears can be changed.

The mod runs on the client alone, so only the player needs it installed and a server does not. It requires Cloth Config API, Fabric API and Mod Menu. Settings are stored in lockslot.json and can be edited by hand or changed in the in-game GUI. Lock Slot is open source under the MIT License and is published for Fabric only, for 26.2.

Key features

  1. Hotbar slot locks

    Each hotbar slot can be locked on its own, with L as the default toggle for the selected slot.

  2. Blocked drops and swaps

    Locked slots ignore the drop keys, the offhand swap key and number-key swaps, so the item stays in place.

  3. Blocked inventory moves

    Shift-clicks, drags and other moves cannot take an item out of a locked slot.

  4. Visible lock marker

    A gold-bordered L shows which slots are locked, and its corner position is configurable.

Compatibility

Latest build for each game version and loader.

26.226.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 3

Cloth Config APIConfiguration Library for Minecraft Mods
Required
Mod MenuAdds a mod menu to view the list of mods you have installed.
Required
Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Protecting a tool slot

A player who keeps a pickaxe or food in a fixed hotbar position can lock that slot so a stray key press does not move it.

Who it’s for: Players who keep specific items in fixed hotbar positions and want to avoid losing them to accidental key presses.

How it compares

Full comparison

Slot Lock is also a Fabric, client-side only mod under the MIT License, but it covers 1.21.11 – 26.1, so it does not reach 26.2. Lock Slot is the Fabric, client-side only option for 26.2. PickyMiner is a Fabric, client-side only mod under the MIT License for 26.1.2 – 26.2, which overlaps the version range of Lock Slot without being a slot lock.

ModLoadersGame versionsEnvironmentUpdated
Lock SlotFabric26.2Client-side only2026-07-15
Slot LockFabric1.21.11 – 26.1Client-side only2026-03-31
PickyMinerFabric26.1.2 – 26.2Client-side only2026-06-30

Questions

Does Lock Slot need to be installed on the server?

No. The mod is client-side only, so a server does not need it and players can join without it.

What does Lock Slot require?

Cloth Config API, Fabric API and Mod Menu are required. All three must be installed alongside Lock Slot on Fabric.

Can the key that locks a slot be changed?

The toggle is bound to L by default and can be changed in the settings. The lock marker's corner position is set there as well.

In the catalog

Lock Slot is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,894 mods support Minecraft 26.2.

More from cactoz

All projects

Similar mods

What the author says

Lock individual hotbar slots — prevent dropping, or swapping items from locked slots. Client-side only, no server install needed. Settings are saved to /lockslot.json and can be changed in-game via the GUI or by editing the file directly.
cactoz, on the Modrinth page

Official listing

Owner
cactoz
Published
2026-07-15
Updated on Modrinth
2026-07-15
Facts verified
2026-10-15

Tags