Paste #54128: Untitled Paste

Date: 2019/05/06 11:50:31 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


## Tags

### World Tags

* `w@world.mythicmobs.list_mobs`
    * Returns a list of all active MythicMobs loaded in the world
* `w@world.mythicmobs.list_spawners`
    * Returns a list of all active MythicMobs Spawners loaded in the world

### Entity Tags

* `<e@entity.mythicmobs.is_mythicmob>`
    * Returns true if entity is a MythicMob
* `<e@entity.mythicmobs.internal_mobname>`
    * Returns the MythicMobs internal mobname of the entity
* `<e@entity.mythicmobs.damage>`
    * Returns the MythicMobs base damage of the entity
* `<e@entity.mythicmobs.followrange>`
    * Returns the MythicMobs follow range of the entity
* `<e@entity.mythicmobs.armor>`
    * Returns the MythicMobs base armor of the entity
* `<e@entity.mythicmobs.attackspeed>`
    * Returns the MythicMobs base attack speed of the entity
* `<e@entity.mythicmobs.knockbackresist>`
    * Returns the MythicMobs base knockback resistance of the entity
* `<e@entity.mythicmobs.jumpstrength>`
* `<e@entity.mythicmobs.maxnodamageticks>`
* `<e@entity.mythicmobs.nodamageticks>`
* `<e@entity.mythicmobs.targets>`
* `<e@entity.mythicmobs.hasteam>`
* `<e@entity.mythicmobs.team>`

* `<e@entity.mythicmobs.has_threattable>`
* `<e@entity.mythicmobs.has_mythicspawner>`
* `<e@entity.mythicmobs.has_target>`
* `<e@entity.mythicmobs.owner>`
* `<e@entity.mythicmobs.aggro.last>`
* `<e@entity.mythicmobs.target.top>`
* `<e@entity.mythicmobs.targeter[]>`
    * Returns a list of targets simulating the use of the relevant MythicMobs targeter
        * e.g. `<player.mythicmobs.targeter[@EIR{r=30}]>`
* `<e@entity.mythicmobs.faction>`
* `<e@entity.mythicmobs.stance>`
* `<e@entity.mythicmobs.level>`
* `<e@entity.mythicmobs.players_killed>`
* `<e@entity.mythicmobs.signal.last>`
* `<e@entity.mythicmobs.mythicspawner>`
* `<e@entity.mythicmobs.threattable.list_entities>`
* `<e@entity.mythicmobs.threattable.threat[]>`

### MythicItem tags

* `<i@item.mythicmobs.internal_itemname>`
    * Gets the MythicMobs internal item name of the item, if any
    * It's hard for me to think of when this would be necessary now that MM supports NBT
* `<i@item.mythicmobs.get_item[]>
    * Returns a given MythicMobs item as a dItem

### MythicMobs skill object and tags

Where `<mmskill@mmskill>` is e.g. `<mmskill@my_cool_skill>`

* `<mmskill@mmskill.skill_name>`
* `<mmskill@mmskill.targets.entities>`
* `<mmskill@mmskill.targets.locations>`
* `<mmskill@mmskill.power>`
* `<mmskill@mmskill.origin>`
* `<mmskill@mmskill.trigger>`
* `<mmskill@mmskill.caster>`
* `<mmskill@mmskill.usable(.for[<entity>])(.with_trigger[<entity>])>`

### MythicMobs spawner object and tags

Where `<mmspawner@mmspawner>` is e.g. `<mmspawner@my_spawner>`

* `<mmspawner@mmspawner.location>`
* `<mmspawner@mmspawner.world>`
* `<mmspawner@mmspawner.mobs.list_spawned>`
* `<mmspawner@mmspawner.mobs.internal_mobname>`
* `<mmspawner@mmspawner.mobs.level>`
* `<mmspawner@mmspawner.mobs.amount>`
* `<mmspawner@mmspawner.mobs.maximum_amount>`
* `<mmspawner@mmspawner.cooldown_total>`
* `<mmspawner@mmspawner.cooldown_remaining>`
* `<mmspawner@mmspawner.warmup_total>`
* `<mmspawner@mmspawner.warmup_remaining>`


## Events

* `on mythicmob dies`
    * Aliases: `on mythicmob death`, `on mm dies`, `on mm death`
    * Contexts: `context.entity`, `context.killer`, `context.drops`, `context.money`, `context.xp`
        * The drops, money, and XP are all provided by MythicMobs, and in fact there are other drops (like SkillAPI exp or whatever) that may need to be accounted for. 
    * Determines should support cancelled and exp/items/whatever.

* `on mythicmob spawns`
    * Aliases: `on mythicmob spawn`, `on mm spawns`, `on mm spawn`
    * Contexts: `context.entity`, `context.location`, `context.cancelled`
    * Determines should support cancelled and fulfilled.