
//Set icon item
setIcon(<ancientwarfare:research_station>)

//Set title String
setTitle("ANCIENT SCIENCE")

//Set description String
setDescription("In order to add research to your book, you will need to create a research station. Then, you will be able to select what research you would like to perform, as well as the cost of that research.")

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

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)