A lightweight shared Cobblemon API and compatibility library for Fabric and NeoForge.
OS Cobblemon Library is a shared API and compatibility layer for Cobblemon mods.
It centralizes recurring Pokémon, storage, entity, event, battle and Pokédex integrations behind a focused public API, allowing projects to share the same implementation across Fabric and NeoForge instead of maintaining duplicated Cobblemon integration code.
The library intentionally provides infrastructure rather than standalone gameplay systems.
Minecraft: 1.21.1 Cobblemon: 1.8.1 to <1.9.0 Java: 21 Loaders: Fabric & NeoForge
Use the file matching your mod loader.
OS Cobblemon Library is primarily a dependency library.
It does not add standalone gameplay content by itself.
Install it when another mod lists OS Cobblemon Library as a required dependency, and make sure to download the JAR matching your loader.
If none of your installed mods require OS Cobblemon Library, installing it by itself will not add new gameplay features.
OS Cobblemon Library provides a focused public API under:
com.ourstory.oscobblemon
The API is organized into reusable Cobblemon-specific domains:
pokemon - identity, matching, creation, persistent data, IVs, abilities, types, labels and sizeentity - Pokémon entity identity, ownership and statestorage - Party and PC access, lookup, matching and countsevent - reusable Cobblemon event subscriptions and lifecycle handlingbattle - battle inspection and classificationpokedex - species, form, variation and completion queriesShared functionality is designed to remain loader-independent whenever possible, with Fabric and NeoForge modules handling platform-specific integration.
The Pokémon API includes helpers for:
PokemonMatcher predicatesPersistent data uses namespaced keys owned by the consuming mod, allowing projects to attach their own state to a Pokémon without copying Cobblemon integration logic.
PokemonStorage provides shared access to player Party and PC storage with:
PokemonEntities provides read-only helpers for:
BattleInspector provides reusable battle information including:
Version 1.1 expands the library with Java-friendly Cobblemon event hooks.
Supported event areas include:
EventSubscriptionGroup can also track multiple subscriptions and cleanly unsubscribe them together, making it useful for reloadable or optional systems.
PokedexQueries provides read-only helpers for:
Complete API documentation, integration guides and compatibility information are available online.
The documentation includes:
OS Cobblemon Library itself is All Rights Reserved and distributed under the OS Cobblemon Library Proprietary API License.
Developers may build and distribute independent mods using the documented public API.
Using the API does not require consuming mods to publish or disclose their own source code.
Redistribution, modified builds, rebranding or copying Library source code are not permitted unless separately authorized.
Using OS Cobblemon Library in your project?
Support continued maintenance, compatibility updates and upcoming Our Story projects through Patreon.
For integration help, API suggestions, compatibility reports or bug reports, join the Our Story community on Discord.
Need a server for your Cobblemon projects?
Host your server with BisectHosting and use code OURSTORY for 25% OFF.
Every purchase helps support the development of Our Story projects.