Home›Java›Mods›Restricted Inventory
Restricted Inventory
ModsJava

Restricted Inventory

Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.

by CoolerProMC · on CurseForge

Restrict player inventory slots to specific items or item tags. Configure which slots accept which items via JSON config — server-wide or per-client…

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.1 · Fabric⬇ Download for 1.20.1 · Fabric⬇ Download for 1.21.1 · NeoForge⬇ Download for 1.20.1 · Forge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Restricted Inventory — screenshot 1Restricted Inventory — screenshot 2Restricted Inventory — screenshot 3

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

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

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)

Slot grid (middle panel)

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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more