This mod adds blocks and items to enable locking any vanilla door, trapdoor and fence gate.
This is a Fabric mod. Don’t ask for a Forge version, this is a basic mod I do on my spare time and I don’t have that much time.
To craft a lockable block, simply put the corresponding vanilla block and a lock housing in a crafting table.

To install a lock on a block, simply right-click on the block with a keyed lock in your hand. The lock remover must be used to remove a lock from a lockable block.
When a block is equipped with a lock, you can lock/unlock it with the corresponding key by right-clicking. A locked block cannot be opened by hand nor redstone signals. When you craft a key or lock, it is blank and cannot be used yet. In order to make them usable, they need to be machined using the locksmithing station. Simply input the key’s/lock’s name in the top field then pick the item from the output slot. The key’s name appears in its tooltip but locks simply show the word “Keyed” in green. You can check if a key fits in a lock without mounting it on a block, put them in both hands and right-click.

For renaming already named keys, see Configuration and FAQ sections below.
Keys can be melted back to a single iron nugget in a furnace/blast furnace.
All vanilla doors (including iron) are supported.

All vanilla trapdoors (including iron) are supported.

All vanilla fence gates are supported.






You can configure the mod by creating a file names "lockable_doors.json" in the "config" directory of your minecraft installation (directory that contains the "mods" directory).
This file may contain the following options:
Only if you enable the feature from the config file.
No, textures of lockable blocks are not using the same files as their vanilla counterpart, they are copies. You will have to create specific textures in your resource pack if you want to make it compatible.
This mod is available under the GPLv3 license.
You are free to use it in any modpack as long as you credit me as the original mod’s author.
No files available for download.