//Set icon item
setIcon("minecraft:cake")

//Set title String
setTitle("Happy Birthday Darkosto!")

//Set description String
setDescription("I am so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, so, sorry")

//Set the parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
setParent("triumph:example/root")

//Sets the frame type
setFrameType("challenge")

//Adds an impossible trigger, so this cannot be completed.
addCriteria("It's not my birthday!", "minecraft:impossible")

//Sets the item reward. A second variable can be added for meta, and a third can be added for stack size
setRewardItem("minecraft:cake", 0, 64)

//Sets the experience reward
setRewardExperience(500000000000000)

//Sets the function reward
setRewardFunction("triumph:happy_birthday")

//Adds cake as a recipe reward
addRewardRecipe("minecraft:cake")

//Sets the requirements to be any. This means that if ANY of the criteria triggers is acquired, the advancement is acquired.
setRequirements("any")