Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 137
    • Issues 137
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
  • API

Last edited by Phil Mar 16, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

API

JavaDocs

JavaDocs for MythicMobs API can be found here:

  1. https://www.mythicmobs.net/javadocs/

Maven

Repository

<repository>
    <id>nexus</id>
    <name>Lumine Releases</name>
    <url>https://mvn.lumine.io/repository/maven-public/</url>
</repository>

Dependency

<dependency>
    <groupId>io.lumine</groupId>
    <artifactId>Mythic-Dist</artifactId>
    <version>5.2.0</version>  
    <scope>provided</scope>
</dependency>

Examples

1) Spawning a MythicMob

    MythicMob mob = MythicBukkit.inst().getMobManager().getMythicMob("SkeletalKnight").orElse(null);
    Location spawnLocation = player.getLocation();
    if(mob != null){
        // spawns mob            
        ActiveMob knight = mob.spawn(BukkitAdapter.adapt(spawnLocation),1);
        
        // get mob as bukkit entity
        Entity entity = knight.getEntity().getBukkitEntity();
    }

2) Check BukkitEntity for MythicMob

    ActiveMob mythicMob = MythicBukkit.inst().getMobManager().getActiveMob(bukkitEntity.getUniqueId()).orElse(null);
    if(mythicMob != null && mythicMob.getName().equals("SkeletalKnight")){
    // do something with mob             
    }

The MythicMobs API contains numerous events and helper classes to help you utilize our mobs, items, and skill systems.

Some examples to help you get started can be found here:

  1. MythicMobs API Examples Repo

Events

< 100% 30% >
Event Description
MythicReloadedEvent Called when the plugin is reloaded
MythicMobSpawnEvent Called when a MythicMob spawns
MythicMobDeathEvent Called when a MythicMob dies
MythicMobDespawnEvent Called when a MythicMob despawns without dying
MythicMobLootDropEvent Called right before a loot table is generated
MythicConditionLoadEvent Called when a custom condition is loaded
MythicDropLoadEvent Called when a custom drop is loaded
MythicMechanicLoadEvent Called when a custom mechanic is loaded
MythicTargeterLoadEvent Called when a custom targeter is loaded
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
FAQ / Common Issues
Mythic Add-ons
Compatible Plugins
API Information
Packs
Mobs
  • Mob Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Effects
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Placeholders
  • Variables
  • Math
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drop Types
Spawning
  • Spawners
  • Random Spawns
Examples