Advancements: Difference between revisions
m (corrected coming in 1.4 from evolution to defeated) |
(corrected catch_pokemon specification to match current codebase) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
| <code>cobblemon:pick_starter</code> || None || Activates when a Player selects a starter. | | <code>cobblemon:pick_starter</code> || None || Activates when a Player selects a starter. | ||
|- | |- | ||
| <code>cobblemon:catch_pokemon</code> || "count" : # <p> "type" : " | | <code>cobblemon:catch_pokemon</code> || "count" : # <p> "type" : "elemental type" || Activates when a Player catches the specified number of the Pokémon type. <p> Type can also be listed as "any". | ||
|- | |- | ||
| <code>cobblemon:catch_shiny_pokemon</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player catches the specified number of the specified shiny Pokémon. <p> Type can also be listed as "any". | | <code>cobblemon:catch_shiny_pokemon</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player catches the specified number of the specified shiny Pokémon. <p> Type can also be listed as "any". | ||
|- | |- | ||
| <code>cobblemon:eggs_hatched</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player hatches the specified number of the specified Pokémon. <p> Type can also be listed as "any". | | "Will be available once breeding is added" <p> <code>cobblemon:eggs_hatched</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player hatches the specified number of the specified Pokémon. <p> Type can also be listed as "any". | ||
|- | |- | ||
| <code>cobblemon:pokemon_evolved</code> || "count" : # <p> " | | <code>cobblemon:pokemon_evolved</code> || "count" : # <p> "species" : "cobblemon:pokemon" <p> "evolution" : "cobblemon:pokemon" || Activates when a Player evolves the specified number of the specified Pokémon. <p> Species and Evolution can also be listed as "any". | ||
|- | |- | ||
| <code>cobblemon:battles_won</code> || "count" : # || Activates when a Player wins the specified number of battles. | | <code>cobblemon:battles_won</code> || "count" : # || Activates when a Player wins the specified number of battles. | ||
|- | |- | ||
| | | <code>cobblemon:pokemon_defeated</code> || "count" : # || Activates when a Player defeats the specified number of Pokémon. | ||
|- | |- | ||
| | | <code>cobblemon:aspects_collected</code> || "aspects" : ["aspect_1", "aspect_2"] <p> "pokemon" : "cobblemon:pokemon" || Activates when a Player collects every aspect listed for the specified Pokémon. | ||
|- | |||
| <code>cobblemon:pokemon_interact</code> || "type" : "cobblemon:pokemon" <p> "item" : "minecraft:item" || Activates when a Player uses the specified item on the specified Pokémon. <p> Both type and item can also be listed as "any". | |||
|- | |||
| <code>cobblemon:party</code> || "party" : ["cobblemon:pokemon", "cobblemon:pokemon"] || Activates when a Player has the specified Pokémon in their party. <p> Each listed species can also be listed as "any". | |||
|- | |||
| <code>cobblemon:level_up</code> || "level" : # <p> "has_evolved" : boolean || Activates when a Player levels up a Pokémon to the specified level. | |||
|- | |||
| <code>cobblemon:pasture_use</code> || None || Activates when a Player uses a Pasture block. | |||
|- | |||
| <code>cobblemon:trade_pokemon</code> || "traded" : "cobblemon:pokemon" <p> "received" : "cobblemon:pokemon" <p> "traded_held_item" : "cobblemon:pokemon" <p> "received_held_item" : "cobblemon:pokemon" || Activates when a Player trades the specified Pokémon for the other specidied Pokémon including held item. <p> Traded and received can be listed as "any". The held items can be skipped or set as <code>"minecraft:air"</code> | |||
|} | |} | ||
==Examples== | ==Examples== | ||
Some examples for Triggers that don't have existing Advancements: | Some examples for Triggers that don't have existing Advancements: | ||
===Aspects=== | ===Aspects=== | ||
< | <syntaxhighlight> | ||
{ | { | ||
"display": { | "display": { | ||
Line 49: | Line 60: | ||
} | } | ||
} | } | ||
</ | </syntaxhighlight> |
Latest revision as of 22:08, 1 December 2023
Advancements are Minecraft's modern Achievement system that can be used to provide rewards for completing certain tasks. For more information refer to the Minecraft Wiki: https://minecraft.fandom.com/wiki/Advancement and https://minecraft.fandom.com/wiki/Advancement/JSON_format
Triggers
Trigger | Conditions | Description |
---|---|---|
cobblemon:pick_starter |
None | Activates when a Player selects a starter. |
cobblemon:catch_pokemon |
"count" : # "type" : "elemental type" |
Activates when a Player catches the specified number of the Pokémon type. Type can also be listed as "any". |
cobblemon:catch_shiny_pokemon |
"count" : # "type" : "cobblemon:pokemon" |
Activates when a Player catches the specified number of the specified shiny Pokémon. Type can also be listed as "any". |
"Will be available once breeding is added" |
"count" : # "type" : "cobblemon:pokemon" |
Activates when a Player hatches the specified number of the specified Pokémon. Type can also be listed as "any". |
cobblemon:pokemon_evolved |
"count" : # "species" : "cobblemon:pokemon" "evolution" : "cobblemon:pokemon" |
Activates when a Player evolves the specified number of the specified Pokémon. Species and Evolution can also be listed as "any". |
cobblemon:battles_won |
"count" : # | Activates when a Player wins the specified number of battles. |
cobblemon:pokemon_defeated |
"count" : # | Activates when a Player defeats the specified number of Pokémon. |
cobblemon:aspects_collected |
"aspects" : ["aspect_1", "aspect_2"] "pokemon" : "cobblemon:pokemon" |
Activates when a Player collects every aspect listed for the specified Pokémon. |
cobblemon:pokemon_interact |
"type" : "cobblemon:pokemon" "item" : "minecraft:item" |
Activates when a Player uses the specified item on the specified Pokémon. Both type and item can also be listed as "any". |
cobblemon:party |
"party" : ["cobblemon:pokemon", "cobblemon:pokemon"] | Activates when a Player has the specified Pokémon in their party. Each listed species can also be listed as "any". |
cobblemon:level_up |
"level" : # "has_evolved" : boolean |
Activates when a Player levels up a Pokémon to the specified level. |
cobblemon:pasture_use |
None | Activates when a Player uses a Pasture block. |
cobblemon:trade_pokemon |
"traded" : "cobblemon:pokemon" "received" : "cobblemon:pokemon" "traded_held_item" : "cobblemon:pokemon" "received_held_item" : "cobblemon:pokemon" |
Activates when a Player trades the specified Pokémon for the other specidied Pokémon including held item. Traded and received can be listed as "any". The held items can be skipped or set as |
Examples
Some examples for Triggers that don't have existing Advancements:
Aspects
{
"display": {
"icon": {
"item": "cobblemon:great_ball"
},
"title": {
"translate": "advancements.cobblemon.snakesss"
},
"description": {
"translate": "advancements.cobblemon.snakesss.description"
},
"background": "cobblemon:textures/blocks/apricorn_planks.png"
},
"parent": "cobblemon:root",
"criteria": {
"catch": {
"trigger": "cobblemon:aspects_collected",
"conditions": {
"pokemon": "cobblemon:arbok",
"aspects": ["snake-pattern-classic", "snake-pattern-sound", "snake-pattern-legacy"]
}
}
}
}