Hi! i’m trying to make a datapack that adds ‘hunts’ to cobblemon by making an advancement that triggers once you catch a specific pokemon, gives you rewards for completing that enhancement and then removing the advancement from the player at the end of it so that they can complete it again.

The issue I am currently having is that the advancement is being completed no matter which pokemon i catch, I am using the conditions specified on the cobblemon wiki for catch conditions – with one of the conditions being “species”:”cobblemon:pokemon” which i thought i could use to make this advancement only trigger on catching a specific Pokemon, but it triggers on every pokemon.

I tried another condition listed on the wiki being “type”:”elemental type” which worked, only triggering the advancement when catching a specific type of pokemon. So i’m not really sure where i’m going wrong! I’ll post a picture of my code below.

(I am extremely new to coding)

by Ukiiie

Comments are closed.