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! 🌸😊
常见问题
Inventory Slot Lock 支持哪些 Minecraft 版本?
Inventory Slot Lock 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Inventory Slot Lock 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分