A mod that frees you from part of your inventory. More specifically, it lets you disable inventory slots.
The mod should be used both server-side and client-side.
Features
The primary feature of the mod is to disable inventory slots. This includes the main 3x9 slots, and the 9 toolbar slots, but not the armor slots or the offhand slot.
By default, 27 slots are locked, but this can be changed in the config.
Inventory locking will apply to players in survival and adventure mode, but not to players in spectator or creative mode.
Unlocked slots
Each player has a value for unlocked slots. This value is subtracted from the configured locked slots to determine the player-specific number of slots. You can check or modify this value directly with the "/inventory_slots" command. The number of unlocked slots can be set to a negative value this way.
By specifying an item in the config, this item can be consumed to unlock a slot. The number of items required to unlock each slot can progress in a limited number of ways, which is chosen in the config.
You can also choose a number of slot unlocks that are lost on death. However, the number of unlocked slots will never drop below 0 through this feature.
Items in locked slots
When an unlocked slot that already has an item is locked either by command or by death, two things can happen to the item based on the config.
By default, the item will be locked in with the slot (or more technically, moved to an isolated inventory until the slot in unlocked again). The other option is that the item is dropped into the world.
Items in locked slots will respect the keepInventory gamerule. As such, during regular gameplay (meaning no usage of /inventory_slots), this option will only be meaningful when keepInventory is turned on.
Config
The mod has a world-specific configuration that can be changed mid-game (however not yet in-game), where some features can be controlled.
The configuration file can be found in the "serverconfig" folder in the world folder. If you copy over a config file to the "defaultconfigs" folder (in the minecraft folder, not world folder), that config file will automatically be used when creating a new world.
Feel free to include this mod in modpacks.
Mod written by kirderf1. Lock texture (in 3.0.0+) provided by Winddbourne.
Support on Discord: https://discord.gg/nT3nZMmuHE