//Set icon item
setIcon("betterwithmods:cooking_pot", 1)

//Set title String
setTitle("Toil Toil Boil and Trouble!")

//Set description String
setDescription("Craft the CAULDRON, it needs a fire below it to function properly.. perhaps a coal block could work for a while, but I bet NETHERRACK would work better!")

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

//Adds criteria named "hasCauldron" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasCauldron", "minecraft:inventory_changed")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory. First variable is the item name, second is the metadata and is not required.
criteria.addItem("betterwithmods:cooking_pot", 1)

//Sets the experience reward for the advancement.
setRewardExperience(10)

//By not setting anything about requirements here, all criteria are automatically required