Inventory Slot Lock

Quick rating

Community listing page, reviews here may not be monitored by the author.

Inventory Slot Lock

No reviews yet

Locks all inventory slots except the hotbar. Unlock more slots using player attributes!

Mod Loaders
Minecraft

About

Description

Locks player inventory slots by default, except for the 9 hotbar slots. Expand your inventory using custom player attributes! Perfect for RPG modpacks, hardcore survival, or progression-based gameplay.

## ✨ Features
* **Visual Lock:** Locked inventory slots are clearly overlayed with a custom lock icon so players know which slots are unavailable.
* **Click Prevention:** Players cannot move, drop, or place items into locked slots, completely sealing them off.
* **Drop Overflow:** When picking up items, if the allowed inventory slots are full, the items will drop to the ground.


## ⚙️ Configuration
You can customize the starting number of unlocked slots in the config file.
* **File Location:** `config/inventory_lock-common.toml`
* **Default Setting:** `initial_unlocked_slots = 9` (Only the hotbar is unlocked at the start)

## 🔮 Attributes (How to Unlock Slots)
This mod adds a custom player attribute that manages the maximum allowed slots. You can grant extra slots to players via commands, custom items, or other progression mods:
* **Attribute ID:** `inventory_lock:extra_slots`

### Example Command (To add 9 more slots to yourself):
`/attribute @s inventory_lock:extra_slots base set 9`
*(Max slots cap is set to 36, meaning the full standard inventory)*

---
Developed for Minecraft 1.20.1 (Forge).

こんにちは!👋 I am a Japanese developer and not very fluent in English, so I use a translation tool for this description and support. Thank you for your warm understanding! 🌸😊