
//Set icon item
setIcon(<buildcrafttransport:pipe_gold_item>)

//Set title String
setTitle("Faster Item Transportation")

//Set description String
setDescription("Gold Transport Pipes transport items faster than normal pipes when given a redstone signal.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-168,87)

//Rewards
setRewardExperience(4)