Stockpile

Stockpile is a Barrel, upgrades and Trash Can mod for Rift and Fabric.

The mod requires Riftlin Downloads for the Rift 1.13 versions but Fabric Language Kotlin for the Fabric versions of the mod.

GitHub Wiki











About
Stockpile is a mod that aims to cater to all of your storage needs. It adds special Barrels for mass storage of items (and soon fluids), a stylish Barrel Hat for interacting with those barrels on the go, and a Trash Can for all of your trashy desires.

Documentation
Some work-in-progress information about the mod (recipes, blocks, concepts, etc.) lives on its GitHub wiki.

Installation
See file dependencies for more information. Fabric API and Fabric Language Kotlin must be manually installed, but Lib Block Attributes is embedded.

Fabric Language Kotlin required

Acknowledgements
Stockpile definitely wouldn't exist without any of the following mods that came before it:

- Storage Drawers

- YABBA

- JABBA

- Project Red and RedPower 2

That's a lot of storage.

Community
If you'd like to share a Stockpile-related project, feel free to message it and it may be added here! Note that I don't manage any of the links below. PureBDCraft-styled resource pack created by pixelplanet

http://members.casema.nl/amber/PBDStockpile128.zip

http://members.casema.nl/amber/PBDStockpile32.zip

DokuCraft resource pack created by ClockwerkKaiser

https://dokucraft.co.uk/stash/?details=22774

GitHub Wiki Info

The Barrel Hat lets you use barrels in your inventory. Its functionality is comparable to a /dank/null from the mod of the same name.

Interaction
Equip the hat in your helmet slot to use it. Ensure that your Barrel Hat Restock keybind is set (the default is G, which will be used throughout this section) and that you are carrying at least one Stockpile item barrel. This barrel can't be stacked.

The barrel hat uses all barrels you are carrying anywhere in your inventory.

To deposit all possible stacks from your inventory to barrels, press G. Note that one item will always be left behind from each stack, allowing for inventory organization to persist.

To restock all possible stacks from your inventory, sneak and press G. Like before, one item will always be left in each barrel to keep it bound to its item type.

Known Issues
There is no way to toggle between the new "leave one item" behavior and the previous "deposit all items" behavior.

Item Barrel
Item barrels store large quantities of one item. When broken, all data is retained. Like most inventories, barrels provide comparator output.

Blocks
Barrels can be inserted into or extracted from (by hoppers, pipes, etc.) on all sides.

Players
To extract one item from a barrel, punch it. To extract an entire stack, punch it while sneaking.

To insert the stack you're holding, use (right-click) the block. To insert all possible stacks, double-use the block (right-click twice).

Barrels can be locked or unlocked. A locked barrel will only ever accept one type of item, while an unlocked one forgets its stored item when empty. Barrels are locked by default. Unlocked barrels display an asterisk (*) on their face.

To lock or unlock a barrel, sneak and use it. Text will appear describing the state of the barrel.

Upgrading
See: Upgrades

Barrels accept up to 6 upgrades.

In previous versions of Stockpile, barrels were upgraded in an anvil. This is no longer the case. See the linked page for more info on upgrades.

Known Issues
Hoppers pulling from and inserting into barrels at the same time may delete items (unconfirmed).

Trash Can
The trash can is a cheap and safe way to dispose of items.

Blocks
Trash cans accept item input on all sides.

Players
To open a trash can, use it. When a trash can is open, you can throw items into it, destroying them.

Upgrades
Stockpile has a flexible upgrade system which is currently only used by item barrels.

Capacity
Capacity and double capacity upgrades add a fixed number of space to a barrel, increasing its capacity beyond 32 stacks.

Multiplier
Multiplier and double multiplier upgrades multiply the current capacity of a barrel by a fixed factor (2x and 4x by default, respectively).

Trash
Trash upgrades allow barrels to accept items beyond their maximum capacity, only to delete them immediately.

Applying Upgrades
To apply an upgrade, use it on the desired block. A status message will appear on-screen describing the current upgrade configuration for the selected block.

Some upgrades conflict with each other. Hold a conflicting upgrade while a barrel is selected, and the conflicts will be highlighted in red.

Removing Upgrades
The screwdriver removes upgrades in the reverse order they were installed in. Hovering over a block with a screwdriver will show the next upgrade to be removed. Using the screwdriver on the block will remove the upgrade and return the item if one is available.

Sometimes, upgrades can't be removed. This is because their features are in use and would result in some kind of loss of data if they were removed in the current state.

For example, consider a full barrel with a multiplier upgrade (which stores 64 stacks). Removing that multiplier upgrade without first emptying the barrel would delete 32 stacks.

Removal order may be configurable in the future.