ModsFinder

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.

FabricNeoForgeClient and serverAll rights reserved1.21.1

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

  1. Priority-based providers

    Higher-priority providers are checked first, and the first provider returning a usable BattleAI is used.

  2. Deferring to lower priorities

    A provider can decline a decision so that lower-priority providers handle it, letting several extensions coexist.

  3. Original AI fallback

    When no provider claims a battle, the actor's original Cobblemon AI runs instead.

  4. Configurable smart wild AI

    Built-in wild AI behavior can be adjusted through the difficulty setting and debug commands.

Compatibility

Latest build for each game version and loader.

1.21.11.1.21.1.2
ReleaseBetaAlphaNot available

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
Wild Battle APIFabric and NeoForge1.21.1Client and server2026-03-16
Cobblemon Tim CoreFabric and NeoForge1.21.1Server-side only2026-10-11
Yet Another Mod LibraryNeoForge1.21.1Client and server2026-07-27
Eclipse Core ClientFabric1.21.1Client-side only2026-10-01

Questions

Does Cobblemon Battle Tower need Wild Battle API?

Yes. Wild Battle API is required by Cobblemon Battle Tower and Cobblemon Wild Extras, so it must be installed with them.

Which loaders does Wild Battle API support for 1.21.1?

Files are published for Fabric and NeoForge, with the latest build 1.1.2 released on 2026-03-16 for both.

Can a third-party mod use Wild Battle API classes?

Yes, but only the public classes listed by the author should be used for integrations. Internal packages are not meant for dependent mods.

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

All projects

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…
Raguto, on the Modrinth page

Official listing

Owner
Raguto
Published
2026-03-05
Updated on Modrinth
2026-03-16
Facts verified
2026-10-15

Tags