key lockable chest

matusz
New member
 
Posts: 5
Joined: Mon Feb 06, 2012 21:42

key lockable chest

by matusz » Tue Feb 07, 2012 21:09

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
Last edited by matusz on Tue Feb 07, 2012 21:29, edited 1 time in total.
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Tue Feb 07, 2012 21:17

How to see if you have a proper key or not? Special tooltip with a key hash?
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

matusz
New member
 
Posts: 5
Joined: Mon Feb 06, 2012 21:42

by matusz » Tue Feb 07, 2012 21:36

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
Last edited by matusz on Tue Feb 07, 2012 21:37, edited 1 time in total.
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Tue Feb 07, 2012 21:57

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.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

matusz
New member
 
Posts: 5
Joined: Mon Feb 06, 2012 21:42

by matusz » Tue Feb 07, 2012 22:53

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'
Last edited by matusz on Tue Feb 07, 2012 22:53, edited 1 time in total.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Wed Feb 08, 2012 05:58

+7
I've been waiting for this
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Wed Feb 08, 2012 17:52

Great idea!!! Really good mod!
Redstone for minetest: Mesecons (mesecons.net)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron