All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Restricted Inventory

Restricted Inventory

by CoolerProMC • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Restricted Inventory

Lock player inventory slots to specific items or item tags.

Ever wanted to keep a dedicated slot for your sword, always have slot 0 as your torch, or enforce item organization across your server? Restricted Inventory lets you do exactly that — configure any inventory slot (0–35) to only accept a specific item or item tag, server-wide or per player.

Features

  • Slot restrictions — Lock any hotbar or inventory slot to a specific item (e.g. minecraft:torch) or an entire item tag (e.g. #minecraft:swords)
  • Server or per-client mode — Apply the same rules to all players from the server config, or let each player define their own restrictions in their client config
  • Visual feedback — Restricted slots display a ghost preview of the required item so players always know what goes where
  • Slot index overlay — Hold Tab in any inventory screen to reveal each slot's index number, making config setup a breeze
  • Smart item routing — Picked-up items automatically go to their designated slots first before filling unrestricted ones

Commands

All commands use the /restrictedinventory prefix.

Command Description Permission
/restrictedinventory config Opens the Restriction Config Screen Admin (OP level 4), or any player when useClientRestriction is enabled

Permission rules

  • When useClientRestriction is false (server-wide mode): only server operators (OP level 4) can open the config screen.
  • When useClientRestriction is true (per-client mode): every player can open their own config screen.

Restriction Config Screen

The config screen is the in-game GUI for editing slot restrictions. Open it with /restrictedinventory config.

Item / Tag picker (top panel)

  • Items tab — lists every registered item at ¾ scale. Hover for the item name and registry ID. Click to select.
  • Tags tab — lists every registered item tag. Each tag cycles through its members as a live preview. Hover for the tag ID. Click to select.
  • Scroll with the mouse wheel or drag the scrollbar on the right.

Slot grid (middle panel)

  • Displays all 36 player inventory slots (0–35) laid out in the standard inventory arrangement.
  • Each slot shows a cycling preview of its current restriction, or is empty if unrestricted.
  • Left-Click a slot to select it (highlighted in white). The selected slot will receive the item or tag chosen in the picker.
  • Right-Click a slot to remove the item or tag chosen.
  • Hover a slot to see its current restriction value as a tooltip.

Configuration

Restrictions are defined in a simple JSON config file. Both specific items and item tags are supported. Nbt/Components is also supported.

{
  "useClientRestriction": false,
  "useTeamAndTagRestrictions": true,
  "restrictedSlots": {
    "0": "minecraft:torch",
    "1": {
      "item": "#minecraft:swords",
      "display": { // this is an example with item with nbt/component
        "components": { // use "tag" for 1.20.1
         "minecraft:stored_enchantments": {
           "mineraft:silk_touch": 1
        },
      }
    },
    "2": {
       "item": "minecraft:enchanted_book",
       "components": { // use "tag" for 1.20.1
         "minecraft:stored_enchantments": {
           "mineraft:silk_touch": 1
        },
       "display": "minecraft:dirt" // this is an example with plain item
      }
    },
    "3": {
      "group": "group_name"
    }
  },
  "groups": { // Only available in common config
    "group_name": [
      {"item": "minecraft:dirt"},
      {
       "item": "minecraft:enchanted_book",
       "components": { // use "tag" for 1.20.1
         "minecraft:stored_enchantments": {
           "mineraft:silk_touch": 1
        }
      }
    ]
  },
   "teamRestrictions": {
    "team": {
       "restrictedSlots": {
          "0": "minecraft:dirt"
       }
    }
  },
  "tagRestrictions": {
    "dirt": {
       "restrictedSlots": {
          "1": "minecraft:grass_block"
       }
    }
  }
}
Slot range Location
0–8 Hotbar (survival mode only)
9–35 Main inventory

Note: Slot indices 0–8 correspond to the hotbar in survival mode. In creative mode, the hotbar uses a different inventory layout and slot restrictions will not apply there.

Compatibility Note

This mod hooks into vanilla's slot placement and item pickup logic via Mixin. Mods or block entities that insert items directly into the player inventory (bypassing standard slot logic) may not respect the restrictions. Mods that also modify Slot, Inventory, or AbstractContainerScreen may conflict.

How to Install Restricted Inventory (Mod)

Restricted Inventory by CoolerProMC is verified for Fabric, Forge, Neoforge across Minecraft versions 1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3 (latest release: 21.1.12, file size: 830 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.21.1, 1.21.11, 26.1.2, 26.2, 26.3) and platform (Fabric, Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
  3. Move the downloaded Restricted Inventory file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Fabric
25d ago 1
1.21.1
Neoforge
25d ago 1
1.20.1
Forge
25d ago 1
1.20.1
Fabric
25d ago 1
1.20.1
Fabric
27d ago 1
1.20.1
Forge
27d ago 1
26.3
Fabric
2mo ago 1
26.3
Neoforge
2mo ago 1
26.3
Fabric
2mo ago 1
26.3
Neoforge
2mo ago 1
1.21.11
Fabric
2mo ago 1
1.21.11
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.20.1
Fabric
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.21.1
Fabric
2mo ago 1
26.2
Neoforge
2mo ago 1
26.2
Fabric
2mo ago 1
26.1.2
Fabric
2mo ago 1
26.1.2
Neoforge
2mo ago 1
1.20.1
Forge
3mo ago 1
1.20.1
Fabric
3mo ago 1
1.21.1
Fabric
3mo ago 1
1.21.1
Neoforge
3mo ago 1
26.1.2
Fabric
3mo ago 1
26.1.2
Neoforge
3mo ago 1
26.2
Fabric
3mo ago 1
26.2
Neoforge
3mo ago 1
26.2
Fabric
3mo ago 1
26.2
Neoforge
3mo ago 1
1.21.1
Fabric
3mo ago 1
1.21.1
Neoforge
3mo ago 1
26.1.2
Fabric
3mo ago 1
26.1.2
Neoforge
3mo ago 1
1.20.1
Forge
3mo ago 1
1.20.1
Fabric
3mo ago 1
26.2
Fabric
4mo ago 1
26.2
Neoforge
4mo ago 1
26.1.2
Fabric
4mo ago 1
26.1.2
Neoforge
4mo ago 1
1.21.1
Fabric
4mo ago 1
1.21.1
Neoforge
4mo ago 1
1.20.1
Forge
4mo ago 1
1.20.1
Fabric
4mo ago 1
26.2
Fabric
4mo ago 1
26.2
Neoforge
4mo ago 1
26.1.2
Fabric
4mo ago 1
26.1.2
Neoforge
4mo ago 1
1.21.1
Fabric
4mo ago 1
1.21.1
Neoforge
4mo ago 1
1.20.1
Forge
4mo ago 1
1.20.1
Fabric
4mo ago 1
1.20.1
Forge
4mo ago 1
1.20.1
Fabric
4mo ago 1
1.21.1
Fabric
4mo ago 1
1.21.1
Neoforge
4mo ago 1
1.20.1
Fabric
4mo ago 1
1.20.1
Forge
4mo ago 1
1.21.1
Fabric
4mo ago 1
1.21.1
Neoforge
4mo ago 1
26.1.2
Neoforge
4mo ago 1
26.1.2
Fabric
4mo ago 1
26.2
Fabric
4mo ago 1
26.2
Neoforge
4mo ago 1
1.20.1
Forge
5mo ago 1
1.20.1
Fabric
5mo ago 1
1.21.1
Neoforge
5mo ago 1
1.21.1
Fabric
5mo ago 1
26.2
Fabric
5mo ago 1
26.2
Neoforge
5mo ago 1
26.1.2
Fabric
5mo ago 1
26.1.2
Neoforge
5mo ago 1
1.20.1
Forge
5mo ago 1
1.20.1
Fabric
5mo ago 1
1.21.1
Fabric
5mo ago 1
1.21.1
Neoforge
5mo ago 1
26.2
Fabric
5mo ago 1
26.2
Neoforge
5mo ago 1
26.1.2
Fabric
5mo ago 1
26.1.2
Neoforge
5mo ago 1
26.2
Fabric
5mo ago 1
26.2
Neoforge
5mo ago 1
1.20.1
Fabric
6mo ago 1
1.20.1
Forge
6mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
1.20.1
Forge
6mo ago 1
1.21.1
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
1.20.1
Fabric
6mo ago 1
1.21.1
Neoforge
6mo ago 1
1.21.1
Fabric
6mo ago 1
26.1.2
Fabric
6mo ago 1
26.1.2
Neoforge
6mo ago 1
## 21.1.12
  • Fixed restricted inventory slot icons disappearing after respawning on NeoForge.

## 21.1.12
  • Fixed restricted inventory slot icons disappearing after respawning on NeoForge.

## 20.1.12
  • Fixed restricted inventory slot icons disappearing after respawning on Forge.

## 20.1.12
  • Fixed restricted inventory slot icons disappearing after respawning on Forge.

## 20.1.11
  • Fixed Inmis backpack inventories allowing items into locked or restricted player inventory slots on Minecraft 1.20.1.

## 20.1.11
  • Fixed Inmis backpack inventories allowing items into locked or restricted player inventory slots on Minecraft 1.20.1.

## 26.3.0.1
### NeoForge
  • Bump to 26.3.0.22-beta and resolved breaking changes by NeoForge

### Fabric
No changes.
## 26.3.0.1
### NeoForge
  • Bump to 26.3.0.22-beta and resolved breaking changes by NeoForge

### Fabric
No changes.
## 26.2.0.8
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

## 26.2.0.8
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

## 21.1.11
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

## 21.1.11
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

## 20.1.10
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

## 20.1.10
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

## 21.1.11
  • Shift-clicking an item (from any container, or within the player's own inventory) now sends it straight to its designated restricted slot first, instead of landing in whatever unrestricted slot happens to come first
  • If the designated slot can't hold the whole stack, the leftover still spills into the rest of the inventory as before

Restricted Inventory Icon
Download Restricted Inventory
Select game version
Select platform