PocketBots:Modding API

From MutigerAffe Wiki
Revision as of 23:41, 18 October 2026 by Maintenance script (talk | contribs) (PocketBots wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PocketBots is built to be extended. Other mods can add their own bot types, abilities and bonuses.

Overview

The public API lives in the api package of PocketBots:

Class Purpose
BotType Base class for a bot type: id, name, model, fixed bonuses and an optional ability.
BotAbility A special ability that runs while the bot is out.
BonusType A bonus that can be fixed or rolled at random.
MaxStatBonus, PercentBonus Ready-made base classes for stat and percentage bonuses.
PocketBotsApi Entry point: registerBotType and registerBonusType.

Adding a bot

  1. Extend BotType and describe your bot.
  2. Optionally return a BotAbility for a special trick.
  3. Register the type with PocketBotsApi.registerBotType when your mod starts.

Bots from other mods live in the generic Bot Capsule items and show up in /pb types.

PocketBots
Getting Started · Bots · Capsules · Finding Capsules · Rarities and Bonuses · Mechanics · Commands · Modding API · Version History
Beep · Digby · Lugg · Spark · Patch · Glimmer · Magno · Zippy · Sizzle
Project page on mutigeraffe.com · Download on CurseForge