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

//Set title String
setTitle("I could have been an Engineer...")

//Set description String
setDescription("All of the items you research through the research book and station must be crafted in an engineering station.")

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

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

drawDirectLines(true)

//Set the position
setPos(13,26)

//Rewards
setRewardExperience(4)