
//Set the icon item
setIcon(<minecraft:stone:0>)

//Set the title String
setTitle("Stoned")

//Set the description String
setDescription("Fire cobblestone into stone")

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

//Set the position
setPos(-37,1)

//Adds criteria named "hasStone" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasStone", "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:stone:0>)

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