
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
- Загрузки
- 258K
- Подписчики
- 36
- Обновлён
- 25 апреля 2026 г.
- Лицензия
- AGPL-3.0-or-later
Опубликован 17 сентября 2025 г.
IN THE WORKS: RUN AND BUN AI FOR COBBLEMON!!
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).
or submit issues here:
If you want some pre-made fights and gym progression, check out my datapack and resource pack to go with it.
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
Make this mod an addon to Radical Cobblemon Trainers API so both can be operational together. 0.15.0? (Done)Look into tying my data pack with some cool fights into this download, along with the appropriate resource pack.
Basic Dynamax logic, and maybe some Z-Move stuff.
Add more control in the config (not sure what to change rn).
Continue putting new moves into scoring consideration.
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.
Ченджлог
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 ->
- Snow now halves the attack of Solar Beam and Solar Blade
- Mega Sol now acts as though in Harsh Sun
- Snow increases the defence of ice-type Pokémon by 50%
- Checks for fatal damage with hail
- Terrains now add damage to their respective type
- Terrain Pulse is added
Bug Fixes:
- Sandstorm was not properly checking for fatal damage.
- Safety Goggles were not preventing damage from weather effects.
- 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 ->
- Snow now halves the attack of Solar Beam and Solar Blade
- Mega Sol now acts as though in Harsh Sun
- Snow increases the defence of ice-type Pokémon by 50%
- Checks for fatal damage with hail
- Terrains now add damage to their respective type
- Terrain Pulse is added
Bug Fixes:
- Sandstorm was not properly checking for fatal damage.
- Safety Goggles were not preventing damage from weather effects.
- 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.
0.15.0-beta-hotfixБета1.21.1 · 20 марта 2026 г.
Bug fixes:
- When certain abilities were checked, fights crashed. (moldbreaker, teravolt)
- Utility Umbrella was being improperly accounted for in certain scenarios.
0.15.0-beta-hotfixБета1.21.1 · 20 марта 2026 г.
Bug fixes:
- When certain abilities were checked, fights crashed. (moldbreaker, teravolt)
- Utility Umbrella was being improperly accounted for in certain scenarios.
Комментарии
Загружаем…