OG Storage - Backpacks, Crates & Drawers Library

Library for the OG storage mods: items that carry items, contents kept on broken blocks and smart stack merging.

OG Storage animated logo

OG Storage

Forge • NeoForge • Fabric • Quilt | 1.12.2 → 26.3

What is it

OG Storage is the storage code the OG mods share. Backpacks, crates, drawers and the magnet all do the same few things: keep items inside other items, keep a block's contents on its item when you break it, and squeeze stacks into slots. Instead of four copies of that code, they now use this one.

It's a library: on its own it adds no blocks or items. The OG mods that use it ask for it, and the CurseForge app installs it for you.

For players

  • 🎒 Your stuff stays where it was. A backpack's contents, a crate's or a drawer's contents when you break it: saved and loaded the same way in every OG mod, on every version.
  • 📦 Break a full crate or drawer and nothing spills. One item comes back with everything inside; the rest of the drops stay plain, so they still stack.
  • 🧲 Smart filling. Magnet OG and Backpacks OG top up the stacks you already have first, then use empty slots.
  • 🚫 No storage inside storage. Shulker boxes, backpacks and full crates never go inside each other.

Mods that use it

For modders

Everything is in com.ogstorage.StoredItems, the same on every loader and version (the container component from 1.20.5, NBT before):

StoredItems.write(backpack, items);                // keep a list of slots on an item
StoredItems.read(backpack, items);                 // ...and read it back
StoredItems.writeBlockItem(crateItem, items);      // contents that come back when the block is placed
List<ItemStack> drops = StoredItems.withContents(drops, crateItem, true, c -> StoredItems.writeBlockItem(c, items));
int left = StoredItems.merge(slots, stack);        // matching stacks first, then empty slots
boolean ok = StoredItems.fitsInContainers(stack);  // vanilla's shulker box / bundle rule

Compatibility

  • 🧩 Every version: Forge 1.12.2 to 26.3, NeoForge 1.20.4 to 26.3 and Fabric/Quilt 1.16.5 to 26.3.
  • 🌐 Install it on both sides (client and server), like the mods that use it.
  • Needs OG Core.
  • Tested in-game on every loader, oldest to newest, and on dedicated servers.

FAQ

Do I need it? Only when an OG mod asks for it. The CurseForge app adds it by itself.

Does it change my worlds? No. Items saved by the OG storage mods before keep loading exactly as before.

Can I use it in a modpack? Yes, MIT license. All the OG mods are in OG Collection.

OG Storage - Backpacks, Crates & Drawers Library Team

profile avatar
  • 17
    Followers
  • 32
    Projects
  • 264.3K
    Downloads

24 free Minecraft mods: graves, backpacks, sorting, 3x3 hammers, waystones and more for Forge, NeoForge and Fabric, 1.12.2 to 26.3. Watch them in action on TikTok, Instagram and YouTube (links below)!

More from Miami_modsView all