Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
Simple Locks
Simple Locks is a simple mod that adds locks, keys, and lockpick.

Commands
- /simple_locks lockpick [enable/disable]
Enables or disables lockpicks. Enabled by default.
- /simple_locks multiLock [enable/disable]
Enables or disables the ability to lock and unlock multiple locks with a single key (a key can only unlock the locks it has locked). When disabled, one key is bound to a single lock. Enabled by default.
- /simple_locks keyReset [eneble/disable]
Enables or disables the ability to clear a used key. When enabled, placing a key with a lock ID into any crafting grid will return a blank key of the same material with no ID. Enabled by default.
- /simple_locks unlock
Unlocks the locked block the player is currently looking at without requiring a key.
Configurations
This mod generates a simple_locks.json file inside the Minecraft config folder. You can make any vanilla Minecraft block—or blocks from other mods—lockable by adding their specific identifiers to this file.
Example:
{
"lockable_blocks": [
"minecraft:tnt",
"minecraft:furnace"
]
}
With the configuration above, you can now place locks on TNT and furnaces. You are not limited to vanilla Minecraft blocks; you can add block identifiers from other mods into this JSON file to make them lockable as well.
When a lock is placed on a block and is in the locked state, the block gains the following properties until it is unlocked with the correct key:
- It cannot be broken.
- Items cannot be inserted into or extracted from it (e.g., via hoppers).
- It becomes completely immune to redstone signals.
- It cannot be moved by pistons.
Note: Adding certain complex or incompatible blocks to this list may cause the game to crash. Proceed with caution when adding modded blocks.



