//Set icon item
setIcon(<tconstruct:tooltables, meta:1>)

//Set title String
setTitle("Stencil Table")

//Set description String
setDescription("The Stencil Table allows you to crat the patterns you made into the part designs that you will use in the Part Builder.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:tinkers/pattern")
setRequiresParent(true)

//Set the position
setPos(11, 12)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<tconstruct:tooltables, meta:1>)