
//Set icon item
setIcon(<artisanworktables:design_pattern>)

//Set title String
setTitle("Design Patterns")

//Set description String
setDescription("In order to assign the mechanical artisan recipes to craft, one must place a Designer's Workbench next to any Workshop Table with the desired recipe within it. Then, place a Blank Design Pattern in the new pattern slot in the table with the recipe. A design pattern with the recipe will be able to be obtained.")

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

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<artisanworktables:design_pattern>)
criteria.addItem(<artisanworktables:workshop:12>)

drawDirectLines(true)

//Set the position
setPos(-319,135)

//Rewards
setRewardExperience(4)