Quests

Filters and multiple objectives

Combine requirements and configure each counter correctly.

Minecraft 1.21.1 · Fabric≈ 2 min read
CobblemonFabric

Combine filters for the same action

Separate conditions in type with commas. Every condition must be supported by the chosen trigger.

Trigger Example
kill_entity entity=minecraft:zombie,weapon=minecraft:iron_sword
dimension_change from=minecraft:overworld,to=minecraft:the_nether
villager_trade profession=minecraft:farmer,item=minecraft:emerald
enchant_item item=minecraft:diamond_sword,enchantment=minecraft:sharpness,min_level=3
anvil_use item=minecraft:iron_sword,action=rename
win_battle WILD,pokemon=pikachu,shiny=true

Use ALL alone to accept any action. Do not combine ALL with specific filters: it can allow occurrences you meant to exclude. Do not use lists such as pokemon=pikachu,eevee or repeat a key to express alternatives.

Pokémon filters

For catching, evolution, Pokémon fishing, scanning, Pokémon levels and Pokémon XP, prefer:

Requirement Setting
A species pokemon=pikachu
A type element=electric
Any shiny shiny=true
Any legendary legendary=true
Shiny and legendary shiny=true,legendary=true
A species form pokemon=raichu,formid=alolan

pokemon=pikachu,shiny=true in these objectives does not require only shiny Pikachu: it can count a shiny of another species or a normal Pikachu. pokemon=pikachu,element=electric accepts Electric Pokémon of other species. shiny=false does not select only normal Pokémon.

For win_battle, use WILD,pokemon=pikachu,shiny=true to require all conditions together for a wild opponent. PLAYER and NPC select trainer categories; do not use Pokémon filters to select their teams.

Add multiple objectives

Every objective must reach its target. Complete them in any order; there is no required sequence or choice between objectives.

objectives:
  pikachu:
    id: catch_pokemon
    description: '&7Catch 3 Pikachu'
    progress: '&7%progress%/%target%'
    type: 'pokemon=pikachu'
    target: 3
  caminhada:
    id: walk_distance
    description: '&7Walk 100 blocks'
    progress: '&7%progress%/%target%'
    type: 'ALL'
    target: 100

When combining similar activities with the same filter, progress can advance more than one objective. To require catching and evolving the same species, or crafting and smelting the same item, prefer separate quests. Check every counter before making a quest available.