
//Set icon item
setIcon(<forestry:apatite>)

//Set title String
setTitle("Who's Hungry?")

//Set description String
setDescription("Apatite is useful as a fertilizer in Forestry multifarms. It is often found in large veins at higher altitudes.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-8,26)

//Rewards
setRewardExperience(4)