
//Set icon item
setIcon(<thermaldynamics:servo:0>)

//Set title String
setTitle("Extracting stuffs from things")

//Set description String
setDescription("Servos are devices that are attached to fluiducts and itemduct in order to be able to extract liquids/items from a container. Right clicking on one will open its inventory where items can be filtered and whether its controlled by redstone or not can be set.")

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

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

drawDirectLines(true)

//Set the position
setPos(-377,-68)

//Rewards
setRewardExperience(4)