
//Set icon item
setIcon(<thermaldynamics:duct_0:2>)

//Set title String
setTitle("Upgraded Energy Ducts")

//Set description String
setDescription("These upgraded energy ducts will transfer a greater amount of power than their leadstone counterparts.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-528,51)

//Rewards
setRewardExperience(4)