Wild Battle API
by Raguto
Wild Battle API is a shared AI library for Cobblemon that lets several mods supply wild battle AI without conflicting with each other.
What it does
When a wild battle starts, the library places a delegating AI on each wild battle actor. On every decision, providers registered by mods are consulted in priority order, and the first one that returns a usable BattleAI takes over. A provider that declines passes the decision down to lower-priority providers.
If no provider claims the context, the actor keeps its original Cobblemon AI as a fallback, so battles still resolve. The author describes this as a way for several mods to cooperate while keeping a reliable default path. The library is published for Fabric and NeoForge for 1.21.1, and it must be installed on both the client and the server.
Mods that depend on it should declare it in their mod metadata. Operators can use the /wildbattleapi commands, or the /wba alias, to open a UI, set difficulty and toggle debug output. These commands require permission level 2.
Key features
Priority-based providers
Higher-priority providers are checked first, and the first provider returning a usable BattleAI is used.
Deferring to lower priorities
A provider can decline a decision so that lower-priority providers handle it, letting several extensions coexist.
Original AI fallback
When no provider claims a battle, the actor's original Cobblemon AI runs instead.
Configurable smart wild AI
Built-in wild AI behavior can be adjusted through the difficulty setting and debug commands.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 2 mods
Use cases
Extending wild battles
A mod adds its own wild battle AI by registering a provider once during common initialization, without replacing the AI of other mods.
Testing and tuning
Operators open the UI, change difficulty or enable debug output to check how wild actors decide their moves.
Who it’s for: Mod developers building Cobblemon extensions that change wild battle AI, and server operators who want a shared way to configure it.
How it compares
Cobblemon Tim Core is server-side only, open source under the MIT License and published for Fabric and NeoForge on 1.21.1. Yet Another Mod Library is open source under the Apache License 2.0 and runs on client and server for NeoForge on 1.21.1. Eclipse Core Client is client-side only, for Fabric on 1.21.1, and is not open source.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Wild Battle API | Fabric and NeoForge | 1.21.1 | Client and server | 2026-03-16 |
| Cobblemon Tim Core | Fabric and NeoForge | 1.21.1 | Server-side only | 2026-10-11 |
| Yet Another Mod Library | NeoForge | 1.21.1 | Client and server | 2026-07-27 |
| Eclipse Core Client | Fabric | 1.21.1 | Client-side only | 2026-10-01 |
Questions
Does Cobblemon Battle Tower need Wild Battle API?
Which loaders does Wild Battle API support for 1.21.1?
Can a third-party mod use Wild Battle API classes?
In the catalog
Wild Battle API 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 Raguto
Similar mods
What the author says
Wild Battle API is a shared wild battle AI framework for Cobblemon. For players and pack authors, it provides configurable smarter wild battle behavior with built-in presets and admin tools. For developers, it exposes a supported public API for registering custom wild BattleAI implementations without replacing…
Official listing
- Modrinth page
- modrinth.com/mod/wild-battle-api
- Owner
- Raguto
- Published
- 2026-03-05
- Updated on Modrinth
- 2026-03-16
- Facts verified
- 2026-10-15
