Deep Storage Barrel

In-game barrel front and connected hopper.
Stores an unlimited quantity of one exact item variant. Components matter: different potion variants, names or enchantments remain different items. The front shows the stored item. It uses vanilla barrel textures tinted teal, inspired by an Ender Pearl.
Recipe
Use the Java barrel recipe with an Ender Pearl in its empty centre:
Plank Slab Plank
Plank Pearl Plank
Plank Slab Plank
Any wooden planks and wooden slabs work. Produces one barrel. Exact recipe.
Controls
These interactions work on every face:
- Left-click: withdraw one item into your inventory.
- Shift-left-click: withdraw one stack, or all remaining items if fewer than a stack remain.
- Right-click with an item: deposit only the stack in that hand, if it matches the barrel's exact variant. The first deposit into an empty barrel selects its item type.
- Right-click with an empty hand: deposit all matching items from your inventory, including Mining Bags. Bags themselves stay in place; other items and differently named/component variants remain untouched. A Mining Bag in the offhand is included.
Shift does not change right-click behaviour. There is no timed hold gesture or empty-hand status-message action. Emptying an unlocked barrel clears its item type; empty-hand use on a blank barrel does nothing. An empty barrel can be mined normally; filled barrels treat left-clicks on every face as withdrawals. Excess withdrawn items drop beside the player if their inventory has no space.
There is no XP cost. Pipes, hoppers and Fabric-compatible combined storage networks can insert and extract on every side. External APIs expose up to Long.MAX_VALUE items at a time; the internal persistent count has no fixed integer cap. Deep Storage Barrels cannot be stored inside themselves.
Block source · Storage and persistence
Locking
Ctrl + right-click toggles the lock without depositing items. The modifier defaults to Left Ctrl (Right Ctrl also works while the default is unchanged), and can be rebound under Experience Works: Storage or found in Controls & appearance. Release right-click before toggling again; holding it does not repeatedly toggle.
A locked barrel retains its exact item variant even when empty. Lock a blank barrel while holding an item to choose that variant without consuming it. Unlocking an empty barrel clears its type. The front has a small gold padlock while locked. Lock state persists through saving and pickup. The four ordinary click actions remain unchanged, including shift-right-click behaving as ordinary right-click.