Skip to main content
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 under com.borntocraft.btcmobs.api (module btcMobs-api).
The API package was renamed from renaud.btc.api to com.borntocraft.btcmobs.api, and the engine types formerly prefixed Mythic* are now Btc* (e.g. MythicPluginBtcPlugin, MythicMobBtcMob). Only the MythicMobs compatibility/import types keep the Mythic prefix. Update any integration that referenced the old package.

Accessing the API

Core managers are registered as Bukkit services:

MobManager

MethodDescription
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:
The engine ships with 367 mechanics, 146 conditions, and 85 targeters already wired — see the Mechanics, Conditions and Targeters references.

Events

All lifecycle events live in com.borntocraft.btcmobs.api.events and extend BtcMobEvent(activeMob).
EventKey dataCancellable
BtcMobSpawnEventactiveMob, spawnReason, announcement
BtcMobDeathEventactiveMob, killer, drops, droppedExperience, deathMessage
BtcMobDamageEventactiveMob, damager, damage (mutable), cause, feedbackMessage
BtcMobDespawnEventactiveMob, reason
BtcMobSkillEventactiveMob, skill, metadata, trigger
BossDamageCompletedEventboss 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.