
//Set icon item
setIcon(<enderio:item_material:20>)

//Set title String
setTitle("Advanced Materials: Grains of Infinity")

//Set description String
setDescription("Grains of Infinity are a mysterious material used for advanced machines. It is obtained by setting the top of a Bedrock block on fire (which you only likley have access to in the Nether at this point).")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-520,-12)

//Rewards
setRewardExperience(4)