Update: (Version 1.20) Added support for
pipeworks. Shared locked chests and furnaces can now connect to tubes - just like normal chests and furnaces.
Update: Made minor change to make it runnable with newer versions of Minetest and added shared locked furnaces.
This is how the modified locked xdoors2 look. It also shows a list of available commands:
This mod adds functionality to lock and share objects that have been adopted to this mod. The owner (=the one who placed the object) can grant other players usage of the object. Thus, the object may be shared by several players while beeing inaccessible to others.
Sample usage of a shared locked chest:
A modified chest, sign (both from the default game) and
doors2 (a mod from xyz) come with the mod as sample objects. Other objects for which this mod might be of intrest could be protector, furnances, teleporters, batteries (technic) or whatever you need.
The chest is most likely the most useful object: If you want to give something to a player who isn't online or roams around elsewhere, you can just put it into a shared locked chest and add the player as one of those allowed to use that chest. He can then pick the stuff up whenever he's close to the chest.
Locked doors seem quite popular as well, though I have mixed feelings about them. They where one of the reasons this mod was created in the first place; still, placing locked doors requires to think about it. It is not that good if there are too many locked doors (multiplayer servers are there so that other people can have a look at your house!), so use with care.
Another way of granting access to a shared locked object is by setting a password with the /set command. If none is set then no one can gain access that way. If a password is set and someone types it in, that player gets access to the object. Thus you can create simple puzzles if you like.
Other ways of getting acces to such objects are the diglocks priv (anyone who has that priv can do the same things with the object as the original owner) and the openlocks priv (acts as if the player has been added by the owner as a legitimate user).
I'm working on a mod called "
playergroups" that allows the player to create groups of playernames so that he/she can e.g. create a group "friends" and then do "/add :friends" on each shared locked object instead of typing all the names in for every object. That mod works to a degree, but there's no guarantee. The playergroups mod has not been tested extensively.
The textures (lock, key, keychain, door with lock) have been provided by Addi. Please consult textures/licence.txt.
Download:
https://github.com/Sokomine/locks/zipball/masterBrowse code:
https://github.com/Sokomine/locksVersion: 1.20 Added support for pipeworks
1.16 Pressing ESC in newer MT versions aborts input again (as in older versions)
1.1 first Version
Licence: GPLv3
Supports: *
PipeworksTODO: Add textures for shared locked signs, chests and furnaces. Help wanted!
In order to use your own shared locked objects, you do need a key:
The keychain is necessary to acces shared locked objects of other players. May also be used for your own objects instead of a key. One keychain is enough for all shared locked objects you encounter:
The lock is a craftitem used to craft shared locked objects:
Shared locked chest:
Shared locked sign:
Shared locked xdoor2:
Shared locked furnace:
The mod can be seen in action on
King Arthurs Land.