Board Thread:Suggestions forum/@comment-31507215-20170408134656

Are you tired of Orcs invading your home? Are you tired of bandits entering your house and robbing you while you are sorting your stuff? Are you tired of Hobbits walking into your house uninvited, walking around your basement for a while, walking back upstairs, jumping on your food on the table, and then politely asking you to collect 8 cooked mutton for you?! If so, try this new lock mechanism!

Sorry for the rant. In case you are wondering, I have never had an orc invade my house, but the other two are perfectly legit.

This suggestion is about adding locks and keys. This has been mentioned before, (Keys for Gates by Direranger50 and Gates under lock by Narvin) and I fully support both of them, but this is a little different.

The only items that this suggestion would require are padlocks and keys. For now, it would be crafted with iron and sticks, but I will talk about other options later on. The padlock would be crafted like this:

Here is how it would work in general. The padlock would be used to lock doors (not gates). I do realize that Banner Protection does do some of this, but I have some more options. First of all, you would craft the padlock, then you would use (right click) it on the door that you want to lock. Once you click on the door, it would give you a key. The key would then be used to open the door, as right clicking that door with anything else would result in it staying closed, and giving a message that it is locked. I would also like to point out the "Locked:" NBT-tag for containers from Vanilla, as it may help. (You can look it up in detail here, unfortunately, they changed it since 1.7, so I don't know how helpful that will be.)

Keys would be given to you upon using the padlock, but could also be crafted with a gold nugget, a stick, and a gold ingot. Keys that you get from a padlock would have something in their lore that helps show what door they go to. The keys that you craft would have blank lores, but when crafted with another key, could be given the lore of the first key, and then can be used to open the same doors.

Thoughts/options on assigning keys to doors.
 * 1) When you lock a door, the door would be assigned a number, (random or sequential) and you would get a key with the same number. The door numbers would be invisible, but the key would show it in its lore.
 * 2) When you lock a door, you are prompted to type in a word. The word that you type will be the "code word", and the door would remember it, and the key you get would have that word in its lore. Once again, the door's name would be invisible. (Personally, I would pick this one.)
 * 3) You could craft locks and keys with different materials - bronze, copper, silver, tin, gold, brass, etc. - and any key of one material will be able to unlock any door locked with a padlock of the same material.

Miscellaneous Thoughts.

Doors could save their lock when mined.

You could use locks to open iron doors, as there is no good way to open them currently. That would make this a little more useful in PvP.

Keys could be used on carpet. When you do so, the key is taken from your inventory and "stored" in the carpet. When you break the carpet, the key will drop as an item along with the carpet. That way you could do the "hide the key under the mat" sort of thing.

Possibly these mechanics could be used to lock chests, too.

Reasons to add this as opposed to just using banners:
 * 1) It may be more aesthetically pleasing.
 * 2) This would keep ALL NPCs out.
 * 3) It would keep Bandits out. (I don't know if they can override banners or not.)
 * 4) This would (theoretically) be cheaper.
 * 5) It is not dependent on alignment.

Those are my thoughts! Suggestions and (constructive) Criticisms welcome!

S'moregoth , Demise of all that is Edible  , Lord of Autumno  the Toasted    (Feel the Power!) 