Common Storage Lib
by Terrarium
Common Storage Lib gives mod developers one storage abstraction for items, fluids and energy that works on both Fabric and NeoForge.
What it does
The library abstracts item, fluid and energy storage, along with data attachments, so storage code written once can run on Fabric and NeoForge. Its design follows Fabric's Storage API, with immutable resources and a context, and borrows the simulation system from Forge's capability model. Developers can use its abstraction tools on their own, since the storage APIs are kept in a separate module.
Fabric natively supports item storage for items and entities and fluid storage for entities, while the library registers its lookups under its own namespace, so a mod chooses which Common Storage Lib capabilities to use. Energy, fluid and item storage on blocks and entities is covered for both loaders, and NeoForge handles the aforementioned lookup types automatically. Fabric requires Fabric API, which provides the ApiLookup system the library relies on.
Common Storage Lib is published for 1.21 and 1.21.1, with the 0.0.10 alpha as the latest file for each loader. It runs on the client and the server, so both sides need it. The code is open source under the MIT License, and public links to the source and issue tracker exist.
Key features
Platform-agnostic storage code
Developers write storage logic once and register it on both Fabric and NeoForge.
Item, fluid and energy abstraction
Separate abstractions cover item, fluid and energy storage on blocks and entities.
Independent abstraction module
The storage APIs live in their own module, so other projects can use the abstractions without the full library.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Required by 1 mod
Use cases
Who it’s for: Mod developers who build storage, machines or pipes for Fabric and NeoForge and want one codebase for both loaders. Players do not interact with the library directly.
How it compares
Potentials is a Client and server library under the MIT License, published for 1.21 – 26.3 on Fabric and NeoForge, so it covers a longer version range. Common Capabilities is open source under the MIT License and runs on Forge and NeoForge for 1.18.2 – 26.3, adding Forge support that Common Storage Lib lacks. Inventory Storages is not open source, is published for Fabric, Forge and NeoForge 1.21.1 – 26.3, and is licensed as All rights reserved.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Common Storage Lib | Fabric and NeoForge | 1.21 – 1.21.1 | Client and server | 2026-07-12 |
| Potentials | Fabric and NeoForge | 1.21 – 26.3 | Client and server | 2026-10-11 |
| Common Capabilities | Forge and NeoForge | 1.18.2 – 26.3 | Client and server | 2026-09-21 |
| Inventory Storages | Fabric, Forge and NeoForge | 1.21.1 – 26.3 | Client and server | 2026-10-08 |
Questions
Does Common Storage Lib need Fabric API?
Which game versions does Common Storage Lib support?
Does a mod that uses Common Storage Lib need it on both sides?
In the catalog
Common Storage Lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from Terrarium
Similar mods
What the author says
CSL attempts to pick up where Botarium left off in its efforts to make truly cross platform storage implementations possible. CSL, like its predecessor, allows developers to create platform agnostic storage code that can be registered to Fabric and NeoForge's respective APIs. It takes after Fabric's Storage api with…
Official listing
- Modrinth page
- modrinth.com/mod/common-storage-lib
- Owner
- Terrarium
- Published
- 2024-05-31
- Updated on Modrinth
- 2026-07-12
- Facts verified
- 2026-10-15
