This mod allows you to lock slots meaning that you e.g. cannot use them in hotbar, cannot select them in hotbar, cannot put any items in them, etc. You can do this with commands or other mods can use the (quite horrible) API.
This mod is compatible with modded inventories, unlike other implementations.
How to Install Inventory Lock (Mod)
Inventory Lock by pjals is verified for Quilt across Minecraft versions 1.20.1 (latest release: 1.0.0+1.20.1, file size: 178 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1) and platform (Quilt).
- Make sure you have the compatible loader or environment installed for Quilt.
- Move the downloaded Inventory Lock file into your Minecraft
.minecraft/modsfolder and launch the game.