COWMODSКаталог модов

Cobblemon: Run & Bun(Advanced Trainer AI)

A much more advanced trainer AI API following the Run and Bun 1.07 community doc and beyond. Dependent on Radical Cobblemon Trainers and COBBLEMON 1.7 Replaces RCT API

Автор: jghooten603,1 тыс.59обновлён 18 окт. 2026 г.
Механики игрыУтилиты

Описание

RUN AND BUN AI FOR COBBLEMON!!

New Update is out! Add-on Update 0.16:

Dynamax Update! and 1.8 Cobblemon Compatible

Check out the changelog for all the details


DOCUMENTATION


IMPORTANT ANNOUNCEMENT!

For all versions at or after 0.15, this mod is now an add-on to the Radical Cobblemon Trainers API. Originally, this was a replacement for that mod, but in the new 0.15 version, this has changed. Now this mod is dependent on the Radical Cobblemon Trainers API to function, meaning you must have both in your mods folder for it to work.

If you update the Radical Cobblemon Trainers mod, it auto-downloads the Radical Cobblemon Trainers API. If not, you can install the latest version of Radical Cobblemon Trainers API manually.

BIG shoutout to the developer of the Radical Cobblemon Trainers, Hdainester, for putting together this add-on version for me.


Message me for questions, requests, and bugs (check out known issues at the bottom).

Surilexa@gmail.com

or submit issues here:

Issues

If you want some pre-made fights and gym progression, check out my datapack and resource pack to go with it.

Trainer Datapack

Trainer Skin Resource Pack


Key Features:

-Dynamic Decision Making: Evaluates moves and switches in real-time based on damage, type matchups, speed, and opponent potential.

-Damage Calcs: Prioritizes OHKOs, 2HKOs, and high-damage opportunities while following a greedy algorithm.

-Intelligent Switching Logic: Scores potential party swaps, preferring faster counters, safer pivots, and even special picks like Ditto or Wobbuffet/Wynaut.

-Move Scoring System: Assigns smart scores to each move based on type effectiveness, status potential, hazards, stat drops, and tons of special cases, allowing the trainer to pick the potential best move.

-Room Awareness: Tracks Spikes, Stealth Rock, Trick Room, Weather effects, etc. Allowing for a more complete understanding of the current battle context for better move scoring.

-Speed Control Mechanics: Recognizes when to set up Tailwind, Trick Room, etc.

-Mega Showdown: Mega transformations are used instantly. Tera is more complex with the new update. You can now choose who to Tera in your JSON, and the first Cobblemon matching that name will Tera. Tera is also a toggle to turn on and is off by default. Check out the changelog for version 0.14.6 for Tera Logic. (No Z-moves, No Dynamax)

-Singles and Doubles Format


Future Roadmap

  1. Make this mod an addon to Radical Cobblemon Trainers API so both can be operational together. 0.15.0? (Done)

  2. Look into tying my data pack with some cool fights into this download, along with the appropriate resource pack.

  3. Basic Dynamax logic, and maybe some Z-Move stuff.

  4. Add more control in the config (not sure what to change rn).

  5. Continue putting new moves into scoring consideration.

  6. Look into weather change ability logic.

If you have any suggestions, please let me know. I will consider all and let you know my thoughts. (Please leave a basic reason for each suggestion, as I am more likely to add it)


Required Mods:

Cobblemon 1.7

Radical Cobblemon Trainers 0.17.x

Radical Cobblemon Trainers API 0.14.x


PSA:

DOUBLE BATTLES ARE NOW OPERATIONAL!!!

Tons of special circumstances have already been accounted for, and the list will keep on growing as we test and add in more features.


Donate: https://ko-fi.com/surilexa

If you like what we are making, feel free to leave a donation; any amount is appreciated and allows us to continue working on this project.


Compatibility Issues

Due to recent changes in version 0.15, this mod now depends on the Radical Cobblemon Trainers API rather than replacing it. You must also have Radical Cobblemon Trainers API in your mod folder for this mod to work.


Compatibility with other mods

Secret Base Trainers: Version 0.16.1+ allows you to use a command to force overwrite the AI model of clones.

How to do this:

  1. Create a clone with all modifications and save.
  2. Use command 1 to force-swap trainers nearby to a new AI model.
  3. Use command 2 to check for the new AI model tag.
Command 1: /data merge entity @e[type=cobblemon_secret_base_trainer:battle_clone,sort=nearest,limit=1] {AIDifficulty:"rb"}

Command 2: /data get entity @e[type=cobblemon_secret_base_trainer:battle_clone,sort=nearest,limit=1] AIDifficulty

Things to consider for this mod:

  1. Overwriting the AI will only create a default "rb" config file. Meaning mega, tera, and dynamax will be off by default.
  2. If you resave a clone after changing its AIDifficulty to "rb" it will reset, and you will need to use the command again to force it back to "rb".
  3. If you want more features, let me know so I can work on them. Ex. Mega, Tera, and Dynamax being enabled.

Example of RCTMOD JSON using this AI

/*Strings are lowercase for a reason because Cobblemon will not recognize them otherwise*/
{
  "name": "Brock",
  "ai": {
    "type": "rb", //our AI tag
    "data": {
      "canTera": true, //This will turn on Tera logic
      "teraTarget": "geodude", //This will make it so the first geodude will tera 
      "canDynamax": true, // This will toggle Dynamax on
      "dynamaxTarget": "geodude", //This will force Dynamax on Geodude
      "canGmax": true  //This will toggle G-Max for all species
    }
  },
  "battleFormat": "GEN_9_SINGLES", //("GEN_9_DOUBLES")
  "team": [
    {
      "species": "geodude",
      "gender": "MALE",
      "level": 12,
      "nature": "adamant",
      "ability": "sturdy",
      "moveset": [
        "rollout",
        "magnitude"
      ],
      "ivs": {
        "hp": 31,
        "atk": 31,
        "def": 31,
        "spa": 31,
        "spd": 31,
        "spe": 31
      },
      "evs": {"atk": 252,"hp": 252},
      "heldItem": "eviolite",
      "gimmicks" { "tera": "rock" } //specifies that this will tera into rock
    }, //end of geodude
    {
      "species": "absol",
      "gender": "MALE",
      "level": 15,
      "nature": "adamant",
      "ability": "pressure",
      "moveset": [
         "nightslash"
      ],
      "heldItem": "mega_showdown:absolite" // how to get mega in your team, this mirrors /give
      }
   ] //end of team
}

KNOWN ISSUES: There are bound to be new bugs every patch. I'll try to get them handled and found before launch, but I'm only one person.

Последние версии

Все версии →
beta

0.16.1-beta-hotfix2

0.16.1-beta-hotfix2
18 окт. 2026 г.665Minecraft: 1.21.1neoforge
Скачать
Что нового
Fixed a bug where Dynamax was being used on the last Pokemon even when the config had Dynamax turned off.
beta

0.16.1-beta-hotfix2

0.16.1-beta-hotfix2
18 окт. 2026 г.1,2 тыс.Minecraft: 1.21.1fabric
Скачать
Что нового
Fixed a bug where Dynamax was being used on the last Pokemon even when the config had Dynamax turned off.
beta

0.16.1-beta-hotfix

0.16.1-beta-hotfix
16 окт. 2026 г.555Minecraft: 1.21.1fabric
Скачать
Что нового
Fixed the problem with the clones in Secret Base Trainers resetting to default when the chunk unloads or the world is closed.
beta

0.16.1-beta-hotfix

0.16.1-beta-hotfix
16 окт. 2026 г.228Minecraft: 1.21.1neoforge
Скачать
Что нового
Fixed the problem with the clones in Secret Base Trainers resetting to default when the chunk unloads or the world is closed.
beta

0.16.1-beta

0.16.1-beta
16 окт. 2026 г.102Minecraft: 1.21.1neoforge
Скачать
Что нового
This version has a requested addition: compatibility with Cobblemon Secret Base Trainers. Details will be in the mod description under compatibilities. But this version allows you to force an overwrite of the "clones" AI model with a command.
beta

0.16.1-beta

0.16.1-beta
16 окт. 2026 г.170Minecraft: 1.21.1fabric
Скачать
Что нового
This version has a requested addition: compatibility with Cobblemon Secret Base Trainers. Details will be in the mod description under compatibilities. But this version allows you to force an overwrite of the "clones" AI model with a command.
beta

Cobblemon: Run & Bun(Advanced Trainer AI) 0.16.0-beta

0.16.0-beta
25 сент. 2026 г.2,5 тыс.Minecraft: 1.21.1fabric
Скачать
Что нового
## Dynamax and Gmax Update! ### **Added:** - **Dynamax** can be enabled by the **“canDynamax”** and **“dynamaxTarget”** config options. (Similar to Tera) - **Gmax** can be enabled by the **“canGmax”** config option - **Dynamax takes priority over Tera.** - Status moves never trigger it, since they would become Max Guard. **The AI Dynamaxes when any of these is true:** 1. The Pokémon is a Dynamax Target in the config 2. The Pokémon is the last one left 3. It can Gigantamax, is at 66% HP or more, and survives the opponent's best hit with its boosted HP. 4. A Max Move gets a KO that the normal move wouldn't, and the AI is faster or is not OHKO 5. A Max Move's stat boost sets up a KO next turn: **a)** Max Airstream: only when the Speed boost makes the AI outspeed the opponent. **b)** Max Knuckle / Max Ooze: only when the Attack or Special Attack boost turns next turn's Max Move into a KO. 6. **If all of these conditions are true** ``` a) Weather or terrain isn't already up. b) It can actually be set: no Primal weather, no Strong Winds, and no Cloud Nine or Air Lock on the opponent's side. c) We move first or survive the return hit while Dynamaxed. d) At least one of these is true: - It helps us: the active Pokémon or anyone left in the party uses it, and it doesn't help the opponent equally. - It denies them: it replaces a weather or terrain the opponent is currently benefiting from. ``` **Moves that fail against a Dynamaxed target now count as immune:** - Weight-based moves: Low Kick, Grass Knot, Heavy Slam, Heat Crash. - OHKO moves: Fissure, Guillotine, Horn Drill, Sheer Cold. - Encore, Torment, Instruct, Skill Swap, and Entrainment. - Roar and Whirlwind. - Destiny Bond, when the user is Dynamaxed. - Flinch immunity for Dynamaxed Pokémon: - Fake Out loses its flinch bonus and is scored as a normal damaging move. - Flinch moves no longer raise the score of paralysis moves against a Dynamaxed opponent. ### Bug Fixes - Fake Out now correctly sees Inner Focus, Shield Dust, and Covert Cloak. It now also respects ability suppression, Mold Breaker, Teravolt, Turboblaze, and Ability Shield. - The Shell Smash and stat-boost KO checks permanently changed the battle's cached stat stages, so later calculations that turn used fake boosts or drops. - The Shell Smash KO check always ignored Sturdy. - OHKO now properly sees multi-hit moves hitting through Sturdy and Focus Sash. - Sometimes, when no opponent is on the field, the AI will incorrectly choose a random move, defaulting to Pass. This is fixed so the AI can only choose available moves.
beta

Cobblemon: Run & Bun(Advanced Trainer AI) 0.16.0-beta

0.16.0-beta
25 сент. 2026 г.1,3 тыс.Minecraft: 1.21.1neoforge
Скачать
Что нового
## Dynamax and Gmax Update! ### **Added:** - **Dynamax** can be enabled by the **“canDynamax”** and **“dynamaxTarget”** config options. (Similar to Tera) - **Gmax** can be enabled by the **“canGmax”** config option - **Dynamax takes priority over Tera.** - Status moves never trigger it, since they would become Max Guard. **The AI Dynamaxes when any of these is true:** 1. The Pokémon is a Dynamax Target in the config 2. The Pokémon is the last one left 3. It can Gigantamax, is at 66% HP or more, and survives the opponent's best hit with its boosted HP. 4. A Max Move gets a KO that the normal move wouldn't, and the AI is faster or is not OHKO 5. A Max Move's stat boost sets up a KO next turn: **a)** Max Airstream: only when the Speed boost makes the AI outspeed the opponent. **b)** Max Knuckle / Max Ooze: only when the Attack or Special Attack boost turns next turn's Max Move into a KO. 6. **If all of these conditions are true** ``` a) Weather or terrain isn't already up. b) It can actually be set: no Primal weather, no Strong Winds, and no Cloud Nine or Air Lock on the opponent's side. c) We move first or survive the return hit while Dynamaxed. d) At least one of these is true: - It helps us: the active Pokémon or anyone left in the party uses it, and it doesn't help the opponent equally. - It denies them: it replaces a weather or terrain the opponent is currently benefiting from. ``` **Moves that fail against a Dynamaxed target now count as immune:** - Weight-based moves: Low Kick, Grass Knot, Heavy Slam, Heat Crash. - OHKO moves: Fissure, Guillotine, Horn Drill, Sheer Cold. - Encore, Torment, Instruct, Skill Swap, and Entrainment. - Roar and Whirlwind. - Destiny Bond, when the user is Dynamaxed. - Flinch immunity for Dynamaxed Pokémon: - Fake Out loses its flinch bonus and is scored as a normal damaging move. - Flinch moves no longer raise the score of paralysis moves against a Dynamaxed opponent. ### Bug Fixes - Fake Out now correctly sees Inner Focus, Shield Dust, and Covert Cloak. It now also respects ability suppression, Mold Breaker, Teravolt, Turboblaze, and Ability Shield. - The Shell Smash and stat-boost KO checks permanently changed the battle's cached stat stages, so later calculations that turn used fake boosts or drops. - The Shell Smash KO check always ignored Sturdy. - OHKO now properly sees multi-hit moves hitting through Sturdy and Focus Sash. - Sometimes, when no opponent is on the field, the AI will incorrectly choose a random move, defaulting to Pass. This is fixed so the AI can only choose available moves.
beta

0.15.4-beta

0.15.4-beta
20 авг. 2026 г.2,5 тыс.Minecraft: 1.21.1fabric
Скачать
Что нового
## **0.15.4 changelog** ### **Bug Fixes / Adjustments** - Bulletproof ability is now considered unaffected by bomb or ball moves. - Cleaned up the print statement when choosing the move for Pokémon to show only their name. - Chilly Reception has been adjusted to be default +6, not +8. - Switching has been adjusted to have the chance to still switch if x-1 moves are at -5 evaluation. - 2HKOs and 3HKOs have been adjusted to include some guaranteed healing factors in their damage calculations. - Morning sun, synthesis, and moonlight were showing a higher score than intended in the sun. - When checking whether a recovery move should be used, false cases were not being handled properly. More often, a -20 score should properly show on recovery moves when heavily discouraged. - Moves with no AI attached should have a default score of 6. - Non-killing moves, excluding top damage, will be set to -5 score if the percent damage is less than 30%. - Moves shown as a non-killing move were sometimes being excluded from evaluations. ### **Added Logic:** - **Tickle:** Clear body or white smoke and not mold breaker (-20 score). Defenders attack or defense at -6, (-20 score). Default +6; - **Metal Burst**: if attacker is OHKO, or Faster, or the Opponent is holding a shiny stone or has the ability Stall (score -20). If attacker is holding a shiny stone or has the ability Stall, score 75% +6, 25% +8; - **Worry Seed:** if the opponent(s) have certain abilities (score -20), if the opponent is currently asleep and does not have either Sleep Talk or Snore (score -20). Default +6; - **Captivate:** If the opponent’s ability is Oblivious, Clear Body, or White Smoke and the attacker's ability is not Mold Breaker, score -20. If the attacker and the target are of the same gender, score -20. If the opponent’s Special Attack is already at -6, score -20 - **Disable:** if the attacker is faster and the opponent has used a move before (score = 5), if the attacker is slower(score = 6). Default -1; - Mind Reader, Lock-on: if the opponent’s evasion is >= 3 stages (score = 50% 5: 50% 6). Default 75% 5, 25% 6. ### **Added to damage calculator (flat damage or variable power moves):** - Super Fang - Dragon Rage - Night Shade - Seismic Toss - Flail - Reversal - Return - Frustration - Sonic Boom - Endeavor - Gyro Ball - Trump Card - Crush Grip - Wring Out
beta

0.15.4-beta

0.15.4-beta
20 авг. 2026 г.2,2 тыс.Minecraft: 1.21.1neoforge
Скачать
Что нового
## **0.15.4 changelog** ### **Bug Fixes / Adjustments** - Bulletproof ability is now considered unaffected by bomb or ball moves. - Cleaned up the print statement when choosing the move for Pokémon to show only their name. - Chilly Reception has been adjusted to be default +6, not +8. - Switching has been adjusted to have the chance to still switch if x-1 moves are at -5 evaluation. - 2HKOs and 3HKOs have been adjusted to include some guaranteed healing factors in their damage calculations. - Morning sun, synthesis, and moonlight were showing a higher score than intended in the sun. - When checking whether a recovery move should be used, false cases were not being handled properly. More often, a -20 score should properly show on recovery moves when heavily discouraged. - Moves with no AI attached should not have a default score of 6. - Non-killing moves, excluding top damage, will be set to -5 score if the percent damage is less than 30%. - Moves shown as a non-killing move were sometimes being excluded from evaluations. ### **Added Logic:** - **Tickle:** Clear body or white smoke and not mold breaker (-20 score). Defenders attack or defense at -6, (-20 score). Default +6; - **Metal Burst**: if attacker is OHKO, or Faster, or the Opponent is holding a shiny stone or has the ability Stall (score -20). If attacker is holding a shiny stone or has the ability Stall, score 75% +6, 25% +8; - **Worry Seed:** if the opponent(s) have certain abilities (score -20), if the opponent is currently asleep and does not have either Sleep Talk or Snore (score -20). Default +6; - **Captivate:** If the opponent’s ability is Oblivious, Clear Body, or White Smoke and the attacker's ability is not Mold Breaker, score -20. If the attacker and the target are of the same gender, score -20. If the opponent’s Special Attack is already at -6, score -20 - **Disable:** if the attacker is faster and the opponent has used a move before (score = 5), if the attacker is slower(score = 6). Default -1; - Mind Reader, Lock-on: if the opponent’s evasion is >= 3 stages (score = 50% 5: 50% 6). Default 75% 5, 25% 6. ### **Added to damage calculator (flat damage or variable power moves):** - Super Fang - Dragon Rage - Night Shade - Seismic Toss - Flail - Reversal - Return - Frustration - Sonic Boom - Endeavor - Gyro Ball - Trump Card - Crush Grip - Wring Out