Item Storage
Maybe 24 (less than a chest, more than a crate) or 32 (more than a normal chest, less than a reinforced one) stacks. This is because barrels make it easier to organize things, and with other mods sorting can be done pretty easily. I don't want them to be as large as factorization barrels. Perhaps it'll be a config option.
Compatible with machines, items can be put into or pulled out of any sides.
Liquid Storage
Two options:
- Either 4 or 8 buckets. This would be way less efficient than storing liquid in chests (with buckets), but I don't want to go any higher than this. Like I always say, BetterStorage is balanced around vanilla, and if you don't like it, there's other mods that add more space efficient storage, why not use them instead?
- I liked how in RedPower you'd have to build tanks out of any blocks and store actual source blocks in it, having a 1:1 ratio. Maybe I want to have barrels be a 1:1 liquid storage thing, only used for recipes, and instead add a block that adds the RP2 grate feature for in-world liquid storage.
Liquid API compatible, so liquids can be pumped in of out or them from any side.
Recipes
There'll be recipes for barrels, meaning some items and liquid can be stored together and create different items and/or liquid. When the amount of items and liquid is right, the process starts and after a variable amount of time the recipe finishes.
Maybe multiple items can be processed at the same time, but each of them will have it's own timing which will start when the requirements for those are met and reset when something is missing.
Example Recipes
1 bucket = 1B = 1000mB (millibuckets)
1 bottle = 250mB (also see MinecraftForge/MinecraftForge#795)
6 sticks + 200mB water => 60sec => 4 pulp, used for cardboard
8 paper + 125mB water => 30sec => 2 pulp
6 rotten flesh + 500mB milk => 40sec => 1 leather
1 obsidian + 250mB lava => 80sec => 1 obsidian ingot
1 potion ingredient + 1B water / potion liquid => 120sec => 1B potion liquid with ingredient applied
This is an alternative to normal brewing. More efficient, but takes more time.
Maybe add recipes for turning metal items back into their ingots at the cost of some lava.
Interaction, GUI
- Right clicking will attempt to place the item inside the barrel.
- Right clicking to put in or take out liquid with an item, like a bucket.
- Left clicking will remove items from the barrels.
Unsure whether to drop them on the floor or give them to the player instantly.
- Use attachments if multiple options are available, for example water bottles?
Maybe use attachments for everything?
- Right clicking with an empty hand will open the GUI, if it's not a basic barrel.
The GUI will have at least 1 item slot, 1 region for the amount of liquid and a way to display the progress of the recipe. Most likely I'll add an item output slot, which is only visible when needed. Maybe an output liquid region, but I could just require the liquid amount to match exactly.
Additional Notes
Different materials: Basic, water proof (can hold water, milk, and other registered liquids), improved (can hold all liquids, more storage). Another tier you can get to with Thaumcraft is also an option. Will be compatible with #23.
This is obviously something I'll have to test out, see if I can find the right feel for it. Otherwise I might just scrap everything to be completely honest. With the grate block I may not even need liquid storage in a block. Crates are a good alternative. Many other mods have barrels. The only reason I want to add them is because of the recipe idea I had.