Restricted Inventory: Lock Minecraft Slots to Items and Tags

Restricted Inventory lets you lock Minecraft inventory slots to specific items or item tags for better organization. Download it for Minecraft today.

Restricted Inventory

Inventory chaos is a universal Minecraft experience. Your hotbar becomes a dumping ground for dirt, random seeds, and that one stack of rotten flesh you keep forgetting to throw out. Restricted Inventory is a mod that solves this problem at its root by letting you lock individual inventory slots to specific items or item tags, so every item has a place and every place has a purpose.

What Restricted Inventory Does

At its core, the mod gives you control over all 36 player inventory slots (indices 0 through 35). You can assign a rule to any slot that dictates what it will accept. A slot locked to minecraft:torch will only hold torches. A slot locked to the tag #minecraft:swords will accept any sword in the game, whether it is a wooden sword or a netherite blade. This makes it perfect for players who want a dedicated weapon slot, a permanent food slot, or a strictly organized hotbar.

The mod supports both specific items and entire item tags, and it also handles NBT and components, so enchanted books with particular stored enchantments can be routed to their own slot. Restrictions can be applied server-wide through the common config or individually per player through the client config, which gives server owners flexibility in how strict they want to be.

Key Features at a Glance

  • Slot restrictions — lock any hotbar or main inventory slot to an item or item tag.
  • Server or per-client mode — enforce one ruleset for everyone or let each player define their own.
  • Visual feedback — restricted slots display a ghost preview of the required item, so players always know what belongs where.
  • Slot index overlay — hold Tab in any inventory screen to reveal each slot's index number, which makes config setup much easier.
  • Smart item routing — picked-up items automatically flow to their designated slots before filling unrestricted ones.
  • Group and team support — define reusable item groups and apply restrictions per team or per tag.

How to Install and Configure

Installation

Installing is straightforward. Place the mod file into your mods folder alongside the appropriate loader for your game version. The mod is built around Mixin and hooks into vanilla slot placement and pickup logic, so it works cleanly with most setups. If you want a frictionless setup, the foxygame.net launcher offers a one-click install for Restricted Inventory, pulling the correct build for your game version automatically and keeping it updated without manual file juggling.

Opening the Config Screen

All commands use the /restrictedinventory prefix. Run /restrictedinventory config to open the Restriction Config Screen. In server-wide mode, only operators at permission level 4 can open it. When useClientRestriction is enabled, every player can open their own config screen and set personal rules.

Using the Config Screen

The screen is split into two panels. The top panel is the item and tag picker: the Items tab lists every registered item at three-quarter scale, and the Tags tab lists every registered item tag with a live cycling preview of its members. The middle panel shows all 36 inventory slots in the standard layout. Left-click a slot to select it, then click an item or tag in the picker to assign it. Right-click a slot to clear its restriction, and hover any slot to see its current value as a tooltip.

Compatibility and Version Notes

Restricted Inventory is available for modern Minecraft releases on both Fabric and NeoForge, with builds targeting versions such as 1.20.1 and 1.21.x. One important quirk: slot indices 0 through 8 correspond to the hotbar in survival mode only. In creative mode the hotbar uses a different inventory layout, so restrictions do not apply there. Also note that mods or block entities which insert items directly into the player inventory, bypassing standard slot logic, may not respect restrictions, and mods that heavily modify Slot or AbstractContainerScreen classes can conflict.

Final Thoughts

If you have ever wished your sword always had its own slot or wanted to enforce tidy inventories across an entire server, this mod delivers exactly that. The combination of item tags, ghost previews, and smart routing makes it feel native to the game rather than bolted on. Whether you run a survival server or just want a cleaner personal hotbar, it is worth trying. You can download Restricted Inventory for Minecraft from your preferred mod host and start organizing your inventory today.