Перейти к содержимому
Mineforgian

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

Загрузки
507K
Подписчики
52
Обновлён
20 августа 2026 г.
Лицензия
AGPL-3.0-or-later

Опубликован 17 сентября 2025 г.

IN THE WORKS: RUN AND BUN AI FOR COBBLEMON!!


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 to work.

If you update the Radical Cobblemon Trainers mod, it auto-downloads the Radical Cobblemon Trainers API. If not, you can just 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).

[email protected]

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 rocks, Trick room, Weather affects, 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


New Update is out! Add-on Update 0.15

Check out the changelog for all the details


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.


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 
    }
  },
  "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.

  1. Some double battles are crashing when the last 2 pokemon are on the field.
  2. Pokemon are incorrectly healing while badly poisoned.
  3. Chilly Reception is being scored higher than intended

Ченджлог

0.15.4-betaБета1.21.1 · 20 августа 2026 г.

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
0.15.4-betaБета1.21.1 · 20 августа 2026 г.

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
0.15.3-betaБета1.21.1 · 25 апреля 2026 г.

Additions:

Speed Calculation should now take into account ->

  • Tailwind
  • Lagging Tail
  • Iron Ball
  • Power items
  • Macho Brace

Damage Calc Changes ->

  1. Snow now halves the attack of Solar Beam and Solar Blade
  2. Mega Sol now acts as though in Harsh Sun
  3. Snow increases the defence of ice-type Pokémon by 50%
  4. Checks for fatal damage with hail
  5. Terrains now add damage to their respective type
  6. Terrain Pulse is added

Bug Fixes:

  1. Sandstorm was not properly checking for fatal damage.
  2. Safety Goggles were not preventing damage from weather effects.
  3. Types immune to sandstorm were not preventing fatal damage.
0.15.3-betaБета1.21.1 · 25 апреля 2026 г.

Additions:

Speed Calculation should now take into account ->

  • Tailwind
  • Lagging Tail
  • Iron Ball
  • Power items
  • Macho Brace

Damage Calc Changes ->

  1. Snow now halves the attack of Solar Beam and Solar Blade
  2. Mega Sol now acts as though in Harsh Sun
  3. Snow increases the defence of ice-type Pokémon by 50%
  4. Checks for fatal damage with hail
  5. Terrains now add damage to their respective type
  6. Terrain Pulse is added

Bug Fixes:

  1. Sandstorm was not properly checking for fatal damage.
  2. Safety Goggles were not preventing damage from weather effects.
  3. Types immune to sandstorm were not preventing fatal damage.
0.15.2-betaБета1.21.1 · 6 апреля 2026 г.

Bug Fixes / Adjustments

  • Fixed the burn stat in predictions.
  • Fixed the weather context.
  • Revelation Dance is hard-coded to the primary type of the Pokémon, else the normal type.
  • Weather IDs are actually accurate to their source.
  • Fixed Aura ability interactions.
  • Switching has been adjusted to favor a switch slightly more, and with the new bug fixes, switches should happen more often.
  • Fixed a function that compares speed stats between parties.
  • Adjusted Substitute to look for speed priority before giving +2 score.
  • Fixed a bug in the team-wide ability checks, which was causing crashes in doubles on the last Pokémon.
  • Future Sight was scoring double its original intended value
  • Fixed an issue where field moves, or all ally moves that do not look at the type chart for immunities, were still being compared on the type chart. E.g., Trick Room into a dark type.
  • Fixed a bug that would still score lightscreen and reflect as a +6 score instead of -20 when already up.

Additions

  • Added Spread move adjustments to calcs.
  • Added Last Respects.
  • Added Stored Power.
  • Added Supreme Overlord.
  • Magnitude / EQ now has scoring.
0.15.2-betaБета1.21.1 · 6 апреля 2026 г.

Bug Fixes / Adjustments

  • Fixed the burn stat in predictions.
  • Fixed the weather context.
  • Revelation Dance is hard-coded to the primary type of the Pokémon, else the normal type.
  • Weather IDs are actually accurate to their source.
  • Fixed Aura ability interactions.
  • Switching has been adjusted to favor a switch slightly more, and with the new bug fixes, switches should happen more often.
  • Fixed a function that compares speed stats between parties.
  • Adjusted Substitute to look for speed priority before giving +2 score.
  • Fixed a bug in the team-wide ability checks, which was causing crashes in doubles on the last Pokémon.
  • Future Sight was scoring double its original intended value
  • Fixed an issue where field moves, or all ally moves that do not look at the type chart for immunities, were still being compared on the type chart. E.g., Trick Room into a dark type.
  • Fixed a bug that would still score lightscreen and reflect as a +6 score instead of -20 when already up.

Additions

  • Added Spread move adjustments to calcs.
  • Added Last Respects.
  • Added Stored Power.
  • Added Supreme Overlord.
  • Magnitude / EQ now has scoring.
0.15.1-betaБета1.21.1 · 29 марта 2026 г.

Bug Fixes:

  • Beads of Ruin, Vessel of Ruin, Sword of Ruin, and Tablet of Ruin now correctly get accounted for and avoid crashing.
  • Defeatist, Hadron Engine, Orichalcum pulse, Overgrow, Blaze, and Punk Rock were incorrectly being accounted for in damage.
  • Blaze now tracks fire-type moves correctly
  • Rivalry now correctly grabs the genders of Pokémon.
  • The sandstorm weather effect was crashing when looking for kills on single-type Pokémon.
  • In doubles, allies were not being accounted for in some moves, causing crashes.
  • Helping Hand now sees its ally as the target and does not force a pass
  • Kangaskhanite was missing from the mega stone list.
  • Terablast was crashing the game
  • Pursuit was not checking correctly for the opponent's percentage HP
  • Imprison was not correctly checking the opponent’s move set when adding score.
  • Weather Ball was crashing in some instances
0.15.1-betaБета1.21.1 · 29 марта 2026 г.

Bug Fixes:

  • Beads of Ruin, Vessel of Ruin, Sword of Ruin, and Tablet of Ruin now correctly get accounted for and avoid crashing.
  • Defeatist, Hadron Engine, Orichalcum pulse, Overgrow, Blaze, and Punk Rock were incorrectly being accounted for in damage.
  • Blaze now tracks fire-type moves correctly
  • Rivalry now correctly grabs the genders of Pokémon.
  • The sandstorm weather effect was crashing when looking for kills on single-type Pokémon.
  • In doubles, allies were not being accounted for in some moves, causing crashes.
  • Helping Hand now sees its ally as the target and does not force a pass
  • Kangaskhanite was missing from the mega stone list.
  • Terablast was crashing the game
  • Pursuit was not checking correctly for the opponent's percentage HP
  • Imprison was not correctly checking the opponent’s move set when adding score.
  • Weather Ball was crashing in some instances.

Комментарии

Загружаем…