
//Set icon item
setIcon(<thermaldynamics:duct_32:1>)

//Set title String
setTitle("Item Ducks?")

//Set description String
setDescription("Itemducts allow items to be transfered between various containers. It is recommended you make the opaque variety to start as the normal ones require more complex materials you will likley not yet have access to.")

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

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

drawDirectLines(true)

//Set the position
setPos(-344,-39)

//Rewards
setRewardExperience(4)