Skip to main content

Mythicmob Loot Objective

An objective to loot specific items from MythicMobs mobs

Fields

FieldTypeDefaultDescription
questRef<QuestEntry>——
factRef<CachableFactEntry>——
mythicMobNamesList<Var<String>>emptyList of MythicMob internal names. Each entry corresponds to the same index in lootItems, lootAmounts, and minLevels.
lootItemsList<Var<Item>>emptyList of items to loot. Each entry corresponds to the same index in mythicMobNames, lootAmounts, and minLevels.
lootAmountsList<Var<Int>>emptyList of amounts required per loot entry.
minLevelsList<Var<Int>>emptyList of minimum mob levels required per loot entry. 0 = no filter.
amountVar<Int>1The total amount of loot items to collect to complete the objective.
displayVar<String>——
onCompleteRef<TriggerableEntry>——
onCompleteModifiersList<Modifier>empty—
hideObjectiveVar<Boolean>falseWhether to hide this objective from the tracking menu unless the quest is tracked.
Common TypeWriter fields (criteria, children, priorityOverride)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—
childrenList<Ref<AudienceEntry>>empty—
priorityOverrideOptional<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.

  • amount is the total number of looted items needed to complete the objective. Progress is stored in the persistent fact linked in fact, and never goes above amount.
  • A rule matches when the killed mob has that internal name (ignoring case), its level is at least the rule's minLevels (0 means no limit) and the drops contain the rule's item.
  • onCompleteModifiers and onComplete run when the objective completes.
  • hideObjective hides 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_amount and loot_min_level, which use the first rule. loot_item_name is the item's custom name (or item_name) with its colors, or the item type's name in each player's language when it has none. loot_mob_display_name is 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.