On Mythic Mob Loot
When a player loots an item from a MythicMob
Fields
| Field | Type | Default | Description |
|---|---|---|---|
mobName | String | — | Only trigger when a specific MythicMob dies. Leave empty to match any mob.Regex |
item | Var<Item> | — | Only trigger when a specific item is looted. Leave empty to match any item. |
minLevel | Var<Int> | 0 | Only trigger when the mob is at or above this level. Leave at 0 to ignore level. |
Common TypeWriter fields (triggers)
| Field | Type | Default | Description |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
The event fires when a player kills a MythicMobs mob and the drops match.
mobNameis a regular expression matched, ignoring case, against the whole MythicMobs internal name. UseSkeleton.*for every mob starting withSkeleton. Empty matches any mob.itemonly fires when the drops contain a similar item. Leave it empty to accept any drop.minLevelignores mobs below this level.0disables the check.- The triggered entries receive context values for the looted item, its name, material and amount, and for the mob name, display name and level. The item name is the custom name (or
item_name) of the item, or the item type's name in each player's language when it has none. The mob display name is the one of the spawned mob, then the one set on its MythicMobs type, then its internal name. Both are written as MiniMessage text.