
//Set icon item
setIcon(<aether_legacy:victory_medal>)

//Set title String
setTitle("Ah, Victory!")

//Set description String
setDescription("Victory Medals can be earned by defeating Valkyries in their tample. 10 are required to fight a temple's Queen.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:aether/enchantedgravitite")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasVictoryMedal", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<aether_legacy:victory_medal>)

drawDirectLines(true)

//Set the position
setPos(-287,17)

//Rewards
setRewardExperience(4)