Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
Allows the locking of blocks using physical keys instead of permissions.
By default, vanilla doors, chests, and trapped chests are supported. Additional blocks — including modded ones — can be configured server-side.
🔑 Craft iron keys and register them with a secret passphrase
🔒 Lock doors, chests, and other blocks using those keys
📋 Duplicate keys safely (master & copied key system)
🚪 Optional auto-opening/closing for locked doors (incl. double-doors)
🧩 Supports modded blocks via simple configuration
🌐 Fully server-authoritative & multiplayer-safe
🛠️ Curios compatibility (Key slot)
1️⃣ Craft an iron key (1x iron ingot, 2x iron nugget below)
2️⃣ Right-click while holding the key to register it.
3️⃣ Enter a secret passphrase when prompted.
4️⃣ Right-click a door or chest with the registered key to lock it.
5️⃣ Duplicate keys using the minting recipe if multiple players need access.
Players without a matching key will be unable to open the locked block.
Server administrators can define exactly which blocks are lockable. This includes vanilla blocks as well as blocks added by other mods.
Example: adding a custom door:
{
"id": "my_mod_doors",
"type": "door",
"blocks": [
"modid:steel_door",
"modid:reinforced_door"
],
"render": {
"offsetX": -0.05,
"offsetY": 0.5,
"offsetZ": -0.5,
"rotX": 0.0,
"rotY": 0.0,
"rotZ": 0.0,
"scale": 0.75,
"hingeNudgeLeft": 0.18,
"hingeNudgeRight": 0.325
}
}
These profiles control locking behavior only. They do not affect block hardness or explosion resistance.
💡 Tips
This mod does not make locked blocks invulnerable. I'd strongly recommend combining this mod with something like OpenPAC (this mod was built exactly for that scenario).
📝 Licensing and distribution
Locksmith is released under the MIT License. All code and assets are MIT licensed. You are free to use, modify, and redistribute the mod in any form, including modpacks and commercial projects, in accordance with the license.



