Doors, Locks and Keys

In this mod, I've added 4 different types of locked door, 4 different types of key and 4 different types of lock.

The four types are: Once the doors are unlocked, they are no longer lockable and become regular wooden doors, however, this is something I'll be changing in the future.
 * Small
 * Iron
 * Gold
 * Diamond

Also, to unlock the door, you need to point the key at the bottom square of the door, it won't unlock if you point at the top block.

You unlock the door with the respective key, small locked doors open with a small key, gold locked doors open with a gold key. A key will be consumed upon opening of a lock.

The 4 types of lock are purely for crafting.

Doors - Crafting
The crafting recipes for the doors are pretty straight foward. It requires 5 x Wooden Planks (any planks will work) and 1 x Lock. To get a Small Locked Door you use a Small Lock, to get an Iron Locked Door you use an Iron Lock, to get a Gold Locked Door you use a Gold Lock and to get a Diamond Locked Door you use a Diamond Lock.

The 5 x Wooden Planks take up the 3 top left, middle left and bottom left slots, as well as the top centre slot and the bottom centre slot in the crafting table. The 1 x Lock takes up the middle centre slot in the crafting table.









Locks - Crafting
The crafting recipe for the locks is quite resource heavy, but it produces two locks so it's not too bad. It requires 8 x Cobblestone/Iron Ingots/Gold Ingots/Diamond and 1 x Key. If you're making a Small Lock you use Cobblestone and a Small Key, if you're making an Iron Lock it's Iron Ingots and an Iron Key, if you're making a Gold Lock it's Gold Ingots and a Gold Key, if you're making a Diamond lock it's Diamonds and a Diamond Key.

The 8 x Cobblestone/Iron Ingots/Gold Ingots/Diamond form a ring along the 8 outer slots of the crafting table and the respective key takes the middle centre slot in the crafting table.



Keys - Crafting
Again, the crafting recipe for the keys is quite resource heavy, but it produces 6 keys, which is enough to create 4 locks (as 1 key produces 2 locks), thus allows for creation of 4 doors, and leaves 4 keys to open those doors.

The keys follow the same ingredients as the locks and require 5 x those ingredients. 5 x Cobblestone to make a Small Key, 5 x Iron Ingots to make an Iron Key, 5 x Gold Ingots to make a Gold Key, 5 x Diamond to make a Diamond Key.

The crafting pattern is 2 ingredients take up the top left and centre slots and the remaining 3 ingredients take up the middle left, centre and right slots.