
//Set icon item
setIcon(<projecte:collector_mk3>)

//Set title String
setTitle("Diamonds from Nothing")

//Set description String
setDescription("The Energy collector is an item that generates EMC when exposed to light.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-522,-20)

//Rewards
setRewardExperience(4)