
//Set icon item
setIcon(<minecraft:clay>)

//Set title String
setTitle("Get a clay block")

//Set description String
setDescription("Get a clay block by combining water and dust in a barrel")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:stage_zero/get_water")
addParent("triumph:stage_zero/crush_cobble")
addParent("triumph:stage_zero/get_barrel")

//Set the position
setPos(275,63)

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

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