Page 1 of 1

key lockable chest

PostPosted: Tue Feb 07, 2012 21:09
by matusz
https://github.com/mormon/klchest

chest looks like this
Image

put 2 unencoded keys in both slots then get out of the chest and punch it to encode keys
Image

Image
Image
Recipes:
key:
Image
lock:
Image
chest recipe1:
Image
chest recipe2:
Image

lower left slot is a lock, upper left is optional keyhole
locking/unlocking works by hitting the chest with the correct key or put the key in keyhole and punch the chest

PostPosted: Tue Feb 07, 2012 21:17
by neko259
How to see if you have a proper key or not? Special tooltip with a key hash?

PostPosted: Tue Feb 07, 2012 21:36
by matusz
you can see the wear bar on the key for a approximation, as the wear is the encoding
it should be the same as the key in lock-slot

I don't know how to quickly check the exact value - it's possible to make a node for checking it, but
it would need putting the key inside, checking the encoding and taking the key out - but it could be
too much if you have many keys

to put the encoding in tooltip would require modification of C++ code I think

PostPosted: Tue Feb 07, 2012 21:57
by neko259
You need some mechanism to copy the key. Because you won't be able to remove the chest with items after you lose the key.

PostPosted: Tue Feb 07, 2012 22:53
by matusz
key duplicator prototype in github now, insert new key, punch with encoded key
additionally - if no new key is inside, then punching with encoded key displays key number
punch with anything else to reset infotext

recipe:
W _ W -> key_duplicator
where W is 'default:wood'

PostPosted: Wed Feb 08, 2012 05:58
by sfan5
+7
I've been waiting for this

PostPosted: Wed Feb 08, 2012 17:52
by Jeija
Great idea!!! Really good mod!