Lock & Key
1.1.0Lock & Key implements a system of keys and locks, where access to containers is determined by a unique form code. Keys are attached to the chests by right-clicking in a squat, full-close and view-only
Lock & Key
Lock & Key adds a full-fledged key and lock system to Minecraft containers, turning chest protection into a gameplay mechanic.
Access to containers is determined not by permissions or commands, but by physical keys with unique FormCodes.
🔑 Keys
Each created key receives a unique FormCode in the format:
XXX#123
This code determines which containers (chests, barrels, etc.) the key can open.
🧱 Locking Containers
Sneak and right-click a container with a key to bind it to that key.
- Double chests are supported
- Only keys with a matching FormCode can open the container
🔄 Access Modes
Containers support multiple access modes:
Fully Locked — access only with the correct key
View Only — players can open the container, but cannot take items
🧪 Key Copying System
The plugin includes a unique key duplication mechanic:
🟢 Key Cast
- Copies the FormCode of the original key
- Has limited durability
🟡 Duplicate Key
- Created from a key cast
- Can open linked containers
- Has a limited number of uses
⚙️ Key Durability
Duplicate keys lose durability with each use.
When durability reaches zero, the key breaks.
🧠 Features
- Uses
PersistentDataContainerfor data storage - No commands or region systems required
- Fully integrated into survival gameplay
- Lightweight and server-friendly
🔨 Crafts



Similar projects
Plugin →VeinMiner
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
99.3MSueta
Simple Voice Chat
A working voice chat in Minecraft!
76.8MSueta
Chunky
Pre-generates chunks, quickly and efficiently
18.4MSueta
VeinMiner Enchantment
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
18MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
WorldEdit
A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting. Use it in creative, or use it temporarily in survival.
11.6MSueta