Release soon — BTCMobs is still in active development. The API described here is stable but
the plugin is not yet publicly released. Package coordinates and versions may still evolve
before 1.0.
BTCMobs API Reference
The BTCMobs API is a thread-safe, Folia-native interface for extending the mob engine. All API types live undercom.borntocraft.btcmobs.api (module btcMobs-api).
Accessing the API
Core managers are registered as Bukkit services:MobManager
| Method | Description |
|---|---|
getActiveMob(UUID) | The ActiveMob backing an entity, if managed by BTCMobs. |
getBtcMob(String name) | A registered mob type by name. |
getMobTypes() / getMobNames() | All registered mob types. |
getActiveMobs() / getActiveMobsInCombat() | Live mob instances. |
spawnMob(BtcMob, Location) | Spawns a mob type at a location. |
ActiveMob
getEntity(): LivingEntity · getBtcMob() (type) · getLevel() · getUniqueId() · getThreatTable()
Skill System Extension
SkillManager (the BtcSkillManager) lets you register components usable directly in .yml
skill scripts:
Events
All lifecycle events live incom.borntocraft.btcmobs.api.events and extend
BtcMobEvent(activeMob).
| Event | Key data | Cancellable |
|---|---|---|
BtcMobSpawnEvent | activeMob, spawnReason, announcement | ✅ |
BtcMobDeathEvent | activeMob, killer, drops, droppedExperience, deathMessage | — |
BtcMobDamageEvent | activeMob, damager, damage (mutable), cause, feedbackMessage | ✅ |
BtcMobDespawnEvent | activeMob, reason | — |
BtcMobSkillEvent | activeMob, skill, metadata, trigger | ✅ |
BossDamageCompletedEvent | boss id, per-player damage map, max health | — |
BtcMobDamageEvent is fired on every hit a BTCMob takes (after configured damage modifiers) —
ideal for damage-number plugins (BetterDamage) and HUDs.
Diagnostics — /btc audit
Run /btc audit in-game to dump the live registry: registered mechanics, conditions,
targeters, scripted skills, plus mob-type and active-mob counts. Useful for verifying that a pack
loaded everything and for parity checks.
Integrations
Native/soft hooks: BetterModel / ModelEngine, PacketEvents, PlaceholderAPI, BetterDamage, WorldGuard, GriefPrevention, McMMO, Vault, Typewriter, MMOCore. See Integrations and the third-party integration guide shipped with the plugin.For the full external-plugin integration guide (used by the kr.toxicity display cluster), see the
BTCMOBS_API_INTEGRATION.md shipped in the plugin docs.