(added explanation and MC wiki links, updated aspects for final changes and added an example for aspect usage)
m (corrected coming in 1.4 from evolution to defeated)
Line 13: Line 13:
| <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: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".
|-
|-
| '''Coming in 1.4'''<p><code>cobblemon:pokemon_evolved</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player evolves the specified number of the specified Pokémon. <p> Type can also be listed as "any".
| <code>cobblemon:pokemon_evolved</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player evolves the specified number of the specified Pokémon. <p> Type 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" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player defeats the specified number of the specified Pokémon.<p> Type can also be listed as "any".
| '''Coming in 1.4''' <p> <code>cobblemon:pokemon_defeated</code> || "count" : # <p> "type" : "cobblemon:pokemon" || Activates when a Player defeats the specified number of the specified Pokémon.<p> Type can also be listed as "any".
|-
|-
| '''Coming in 1.4'''<p><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.
| '''Coming in 1.4'''<p><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.

Revision as of 04:09, 7 July 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" : "cobblemon:pokemon"

Activates when a Player catches the specified number of the specified Pokémon.

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".

cobblemon:eggs_hatched "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" : #

"type" : "cobblemon:pokemon"

Activates when a Player evolves the specified number of the specified Pokémon.

Type can also be listed as "any".

cobblemon:battles_won "count" : # Activates when a Player wins the specified number of battles.
Coming in 1.4

cobblemon:pokemon_defeated

"count" : #

"type" : "cobblemon:pokemon"

Activates when a Player defeats the specified number of the specified Pokémon.

Type can also be listed as "any".

Coming in 1.4

cobblemon:aspects_collected

"aspects" : ["aspect_1", "aspect_2"]

"pokemon" : "cobblemon:pokemon"

Activates when a Player collects every aspect listed for the specified Pokémon.

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"]
     }
   }
 }

}