[Mod] Shared chests with bag support [chesttools]

Sokomine
Member
 
Posts: 3460
Joined: Sun Sep 09, 2012 17:31

[Mod] Shared chests with bag support [chesttools]

by Sokomine » Fri Sep 19, 2014 19:01

Note: The mod is currently beeing tested on VanessaEs free-for-all server. Bug reports and feedback welcome!

It is sometimes desirable to build something huge together with other players. For that purpose, sharing chest space helps. My locks mod was created for that purpose. And it works. However, it is tiresome to manually grant access to each user, and to have to always carry a keychain is a further disadvantage.

The Landrush mod contains a shared chest that is far easier to use: Instead of having to enter names manually, it just checks who's allowed to build in that area and grants permission to use the chest based on that information. The Landrush chest is limited to the Landrush protection system.

This chest here works similar to the Landrush chest, except that it's designed to work along all modern protection systems (those which use minetest.is_protected). So, now, who can take something out of the chest or put something in? Answer: Everyone who could dig or build at that position - provided the area is protected at all. Else it acts like a normal locked chest.

First, craft the chest:
Image

After placing and opening the chest, you'll see the following:
Image

Clicking on "Craft" lets you acces your craft grid directly. Just imagine coming back from an extensive mining tour, where your craft grid had to help out as storage space for additional ores, cobble or anything else. Now you don't have to transfer that stuff back to your inventory first. You can also take materials out of the chest, craft them in the grid, and place the result back into the chest without having to go through your main inventory.
Image

Clicking on one of the bags buttons works only if you have unified_inventory installed. In that case, you can access your bags directly - same as with the craft grid above.
Image

"DA" stands for "drop all". It will try to move all items from your selected inventory (either the main one, craft grid or a bag) to the chest. Doing so with the above setup leads to this:
Image

"TA" is "take all" and tries to take everything from the chest and stuff it into your inventory:
Image

"SA" means "swap all". It swaps both inventories as far as that's possible. Positions are kept. First, let's apply that command to the main inventory from above:
Image
Now we switch to the bag shown before:
Image
..and swap inventories. As the bag is smaller than the chest's inventory, only as much as is possible get swapped:
Image

The last button, "FA", means "filter all". This may be less intuitive than the options above. The purpose of this button is to speed up dropping of gathered items into chests that are already sorted. You may have organized your chests in such a way that one contains only cobble, while another one might contain ores and ingots, another one wood etc. If you click on "FA", only items where there's at least one of them already in the chest will be transfered into the chest. It's like "drop all", except that what's already in the chest acts like a filter. In our above case, the shared chests, tree, wooden roof and glass are present in both inventories and thus get all transfered into the chest:
Image

This blue shared chest can also be used as a tool to upgrade other chests. Wield the chest and punch another normal, locked or shared chest:
Image
Clicking on the "shared" version costs you 2 steel ingots and upgrades the normal chest to the shared version introduced here. The chest's inventory is kept!
Image
You can also downgrade chests. If you, for some reason, want to go back from the shared chest to a normal locked one, you'll get one steel ingot back:
Image

Download: https://github.com/Sokomine/chesttools/archive/master.zip
Browse code: https://github.com/Sokomine/chesttools
Version: 0.1
Licence: GPLv3
License for textures: only contains re-colored textures from the default locked chest
Depends on: default
Supports: unified_inventory
Last edited by Sokomine on Sat Mar 21, 2015 23:30, edited 2 times in total.
A list of my mods can be found here.
 

User avatar
Napiophelios
Member
 
Posts: 922
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Shared chests with bag support [chesttools]

by Napiophelios » Fri Sep 19, 2014 23:02

I use Modmenu (with Bags mod by cornernote installed)
and this mod works well with it too,
not just unified inventory :)
 

User avatar
Achilles
Member
 
Posts: 247
Joined: Sun Dec 15, 2013 11:55
Location: Excuse Me???? -_-
In-game: Achilles

Re: [Mod] Shared chests with bag support [chesttools]

by Achilles » Sat Sep 20, 2014 10:04

Nice, This seems to beat the default chest by quite a bit :)

Yet to try it out tho...
The Ironic Thing About Common Sense Is That It Isn't Very Common
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27
 

Kilarin
Member
 
Posts: 670
Joined: Mon Mar 10, 2014 00:36
 

MykieDoesStuff
Member
 
Posts: 134
Joined: Sat Aug 16, 2014 02:44

Re: [Mod] Shared chests with bag support [chesttools]

by MykieDoesStuff » Sun Sep 21, 2014 13:57

Whoa, this looks like an extremely useful mod.
For fast response... send me a PM
 

User avatar
Achilles
Member
 
Posts: 247
Joined: Sun Dec 15, 2013 11:55
Location: Excuse Me???? -_-
In-game: Achilles

Re: [Mod] Shared chests with bag support [chesttools]

by Achilles » Wed Sep 24, 2014 20:24

iDevMe wrote:Whoa, this looks like an extremely useful mod.


It does seem to beat the default chests by quite a bit....
 

User avatar
Chinchow
Member
 
Posts: 684
Joined: Tue Sep 18, 2012 21:37

Re: [Mod] Shared chests with bag support [chesttools]

by Chinchow » Sat Sep 27, 2014 01:33

Bravo. I love chest mods, and this is up with 0gb.us' chest mod in my book.
 

User avatar
Fixer
Member
 
Posts: 841
Joined: Sun Jul 31, 2011 11:23
Location: Ukraine
IRC: Fixer
In-game: Fixer
 

User avatar
Lord_Vlad
Member
 
Posts: 81
Joined: Thu Jul 20, 2017 07:58

Re: [Mod] Shared chests with bag support [chesttools]

by Lord_Vlad » Sun Sep 24, 2017 17:12

Once the chest has been affected by this mod, shift clicking on an item does nothing more than a normal click. That's the only problem with this mod so far.
 


Return to WIP Mods



Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests