
//Set icon item
setIcon(<pyrotech:book>)

//Set title String
setTitle("Into the Wild")

//Set description String
setDescription("Begin your studies in survival")

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

//Set the position
setPos(-252,0)

//Adds criteria named "clickedItem" with the trigger type "triumph:right_click_item". This function returns the criteria as an object
criteria = addCriteria("clickedItem", "triumph:right_click_item")

//Sets the required item for the criteria. This is the item that needs to be right clicked with by the player.
criteria.setItem(<pyrotech:book>)