
Doors, chests, ender chests, barrels, hoppers and shulker boxes can be locked and then opened with the correct key. So can the containers from the other Assorted Storage mods. Using the locksmith workbench you are able to set a code on locks and keys to restrict access to only those that have a key of the same code.
Locksmith Workbench

Locksmith Lock
assortedlocks:
Locksmith Key
assortedlocks:
Crafting Table
minecraft:
Locksmith Workbench
assortedlocks:
Shaped crafting recipe made in a Crafting Table. Row 1: Locksmith Lock. Row 2: Locksmith Key. Row 3: Crafting Table. Makes Locksmith Workbench.

Locksmith Key
assortedlocks:
Locksmith Lock
assortedlocks:
Crafting Table
minecraft:
Locksmith Workbench
assortedlocks:
Shaped crafting recipe made in a Crafting Table. Row 1: Locksmith Key. Row 2: Locksmith Lock. Row 3: Crafting Table. Makes Locksmith Workbench.
Using this workbench will allow you to define a code for keys and locks. As long as the lock and key code are the same you will be able to open blocks.

Locksmith Lock
Once a code has been set on a lock simply right click a supported storage block to lock it and restrict access to it.

Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Locksmith Lock
assortedlocks:
Quantity: 3
Shaped crafting recipe made in a Crafting Table. Row 1: empty, any iron ingots (tag #c:ingots/iron, 1 item), empty. Row 2: any iron ingots (tag #c:ingots/iron, 1 item), empty, any iron ingots (tag #c:ingots/iron, 1 item). Row 3: any iron ingots (tag #c:ingots/iron, 1 item), any iron ingots (tag #c:ingots/iron, 1 item), any iron ingots (tag #c:ingots/iron, 1 item). Makes 3 Locksmith Lock.
Locksmith Key
You just need to have this key somewhere within your inventory and you will be able to open storage blocks that are locked with its code.

Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Locksmith Key
assortedlocks:
Quantity: 3
Shaped crafting recipe made in a Crafting Table. Row 1: any iron ingots (tag #c:ingots/iron, 1 item), any iron ingots (tag #c:ingots/iron, 1 item). Row 2: any iron ingots (tag #c:ingots/iron, 1 item), any iron ingots (tag #c:ingots/iron, 1 item). Row 3: any iron ingots (tag #c:ingots/iron, 1 item), empty. Makes 3 Locksmith Key.
Key Ring
If you have a ton of spare keys lying around taking up your inventory there is a simple solution the Key Ring. This neat item allows you to store up to 12 separate keys in one item and will allow you to unlock any block just the same as if you had each key separate.

Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Locksmith Key
assortedlocks:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Iron Ingot
minecraft:
Accepts any iron ingots: tag #c:
Key Ring
assortedlocks:
Shaped crafting recipe made in a Crafting Table. Row 1: empty, any iron ingots (tag #c:ingots/iron, 1 item), empty. Row 2: any iron ingots (tag #c:ingots/iron, 1 item), Locksmith Key, any iron ingots (tag #c:ingots/iron, 1 item). Row 3: empty, any iron ingots (tag #c:ingots/iron, 1 item), empty. Makes Key Ring.
To use it just right click it in your inventory and a GUI will open. Drag any keys you would like to store over and then you are good to go. It only supports 1 key in each slot.

Locking Containers
Use a padlock on a chest, barrel, hopper or shulker box and it becomes the locked version of itself. A locked chest, barrel, hopper or shulker box keeps whatever was inside when the padlock went on. You can also craft a vanilla chest or barrel together with a lock that has a code to get a locked one.


Chest
minecraft:
Accepts any wooden chests: tag #c:
Locksmith Lock
assortedlocks:
Locked Chest
assortedlocks:
The lock needs a code set on a Locksmith Workbench first. The chest is locked with that code.
Shapeless crafting recipe made in a Crafting Table. Ingredients in any arrangement: any wooden chests (tag #c:chests/wooden, 3 items), Locksmith Lock. Makes Locked Chest. The lock needs a code set on a Locksmith Workbench first. The chest is locked with that code.

Barrel
minecraft:
Accepts any wooden barrels: tag #c:
Locksmith Lock
assortedlocks:
Locked Barrel
assortedlocks:
The lock needs a code set on a Locksmith Workbench first. The barrel is locked with that code.
Shapeless crafting recipe made in a Crafting Table. Ingredients in any arrangement: any wooden barrels (tag #c:barrels/wooden, 2 items), Locksmith Lock. Makes Locked Barrel. The lock needs a code set on a Locksmith Workbench first. The barrel is locked with that code.
Sneak and use it with an empty hand while you carry the matching key to take the padlock off and get the plain one back.
Locked Ender Chest
The Locked Ender Chest adds the ability to have multiple separate Ender Chest inventories saved and can be accessed by anyone else who has the same code use to lock it.
There are two ways to get a Locked Ender Chest. The first is in a crafting table combine an Ender Chest and a Locksmith Lock with a saved code. One without a code will not work. Then you will get a Locked Ender Chest locked with that code.

Ender Chest
minecraft:
Accepts any ender chests: tag #c:
Locksmith Lock
assortedlocks:
Locked Ender Chest
assortedlocks:
The lock needs a code set on a Locksmith Workbench first. The chest is locked with that code.
Shapeless crafting recipe made in a Crafting Table. Ingredients in any arrangement: any ender chests (tag #c:chests/ender, 2 items), Locksmith Lock. Makes Locked Ender Chest. The lock needs a code set on a Locksmith Workbench first. The chest is locked with that code.
The second option is to just Shift+Right Click an Ender Chest with a Locksmith Lock with a saved code. This will turn the Ender Chest into a Locked Ender Chest locked with that code.

Each separate Locked Ender Chest locked with a different code is a completely separate inventory than the others. So you can have a huge amount of separate Locked Ender Chests to store different items in.
If you ever want the normal Ender Chest back just Shift+Right Click on one and the lock will pop off provided you are able to access the inventory of what it is locked with.
Locking Doors
Using the Locksmith Lock you are also able to lock all of the Vanilla doors so that you require the correct key with the correct combination to open them. If they are locked they will no longer be able to be activated by redstone. If you have Assorted Building Blocks installed you will also be able to lock the 4 doors that it adds (Quartz, Steel, Glass, Chain Link).

Doors that do not open by hand, like Iron, Quartz, and Steel, can be locked with a right click using a Locksmith Lock that has a combination. Doors that do open by hand, including the wooden and copper ones, need a shift-right click.
To remove the lock from a door shift-right click on the locked door with an empty hand. Make sure you have a key in your inventory with the combination.

