Skip to main content

On Mythic Mob Loot

When a player loots an item from a MythicMob

Fields

FieldTypeDefaultDescription
mobNameString—Only trigger when a specific MythicMob dies. Leave empty to match any mob.Regex
itemVar<Item>—Only trigger when a specific item is looted. Leave empty to match any item.
minLevelVar<Int>0Only trigger when the mob is at or above this level. Leave at 0 to ignore level.
Common TypeWriter fields (triggers)
FieldTypeDefaultDescription
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

The event fires when a player kills a MythicMobs mob and the drops match.

  • mobName is a regular expression matched, ignoring case, against the whole MythicMobs internal name. Use Skeleton.* for every mob starting with Skeleton. Empty matches any mob.
  • item only fires when the drops contain a similar item. Leave it empty to accept any drop.
  • minLevel ignores mobs below this level. 0 disables 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.