
//Set icon item
setIcon(<pyrotech:material:13>)

//Set title String
setTitle("Foraging")

//Set description String
setDescription("Collect dried plant fibers")

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

//Set the position
setPos(-221,-15)

//Hide the connection lines, so I can have a pretty shape
hideLines(false)

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

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