
//Set icon item
setIcon(<artisanautomation:automator>)

//Set title String
setTitle("Work Station Automation")

//Set description String
setDescription("A Mechanical Artisan is used to automate any workshop table recipes. Items, Power, and Fluids can be inserted through pipes connected to a Artisanal Power Converter located on the block below the Mechanical Artisan. It requires a design pattern to work, as well as the appropriate table for the pattern put into the Mechanical Artisan in the first tab.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-277,134)

//Rewards
setRewardExperience(4)