
//Set icon item
setIcon(<industrialforegoing:latex_processing_unit>)

//Set title String
setTitle("Making Raw Plastic")

//Set description String
setDescription("The Latex Processing Unit takes the latex made by a tree fluid extractor, and processes it into raw plastic.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-218,78)

//Rewards
setRewardExperience(4)