Inventory Slot Lock

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

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! ๐ŸŒธ๐Ÿ˜Š

The Inventory Slot Lock Team

profile avatar
  • 1
    Followers
  • 1
    Projects
  • 57
    Downloads