PocketBots:Modding API
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
- Extend
BotTypeand describe your bot. - Optionally return a
BotAbilityfor a special trick. - Register the type with
PocketBotsApi.registerBotTypewhen 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 |