Mythicmob Loot Objective
An objective to loot specific items from MythicMobs mobs
Fields
| Field | Type | Default | Description |
|---|---|---|---|
quest | Ref<QuestEntry> | — | — |
fact | Ref<CachableFactEntry> | — | — |
mythicMobNames | List<Var<String>> | empty | List of MythicMob internal names. Each entry corresponds to the same index in lootItems, lootAmounts, and minLevels. |
lootItems | List<Var<Item>> | empty | List of items to loot. Each entry corresponds to the same index in mythicMobNames, lootAmounts, and minLevels. |
lootAmounts | List<Var<Int>> | empty | List of amounts required per loot entry. |
minLevels | List<Var<Int>> | empty | List of minimum mob levels required per loot entry. 0 = no filter. |
amount | Var<Int> | 1 | The total amount of loot items to collect to complete the objective. |
display | Var<String> | — | — |
onComplete | Ref<TriggerableEntry> | — | — |
onCompleteModifiers | List<Modifier> | empty | — |
hideObjective | Var<Boolean> | false | Whether to hide this objective from the tracking menu unless the quest is tracked. |
Common TypeWriter fields (criteria, children, priorityOverride)
| Field | Type | Default | Description |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
children | List<Ref<AudienceEntry>> | empty | — |
priorityOverride | Optional<Int> | — | — |
How to use it
Define the loot with parallel lists: the entry at position 1 of mythicMobNames, lootItems, lootAmounts and minLevels describe one rule, position 2 the next one, and so on.
amountis the total number of looted items needed to complete the objective. Progress is stored in the persistent fact linked infact, and never goes aboveamount.- A rule matches when the killed mob has that internal name (ignoring case), its level is at least the rule's
minLevels(0means no limit) and the drops contain the rule's item. onCompleteModifiersandonCompleterun when the objective completes.hideObjectivehides the objective from the tracking menu unless the quest is tracked.- Placeholders for the display text:
loot_mob_name,loot_mob_display_name,loot_item_name,loot_item_material,loot_amountandloot_min_level, which use the first rule.loot_item_nameis the item's custom name (oritem_name) with its colors, or the item type's name in each player's language when it has none.loot_mob_display_nameis the display name set on the MythicMobs mob, or its internal name when it has none. Both are written as MiniMessage, so they can be placed inside any text.