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

//Set title String
setTitle("Maximum EMC Transfer")

//Set description String
setDescription("Anti-Matter Relays are items that can transport EMC. Most often used to put EMC from energy collectors into energy condensors.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)