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

//Set title String
setTitle("Creating the Kardashians")

//Set description String
setDescription("Plastic is often used for creating industrial foregoing machines, as well as other machinary.")

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

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

drawDirectLines(true)

//Set the position
setPos(-160,30)

//Rewards
setRewardExperience(4)