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

//Set title String
setTitle("Bee, Tree, and Butterfly Analysis")

//Set description String
setDescription("The Portable Analyzer gives various information on Forestry Bees, Trees, and Butterflys at the cost of one honey drop per operation.")

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

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

drawDirectLines(true)

//Set the position
setPos(-284,17)

//Rewards
setRewardExperience(4)