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

//Set title String
setTitle("Pattern Chest")

//Set description String
setDescription("This chest will hold your patterns and as long as it is next to your stencil table and part builder you can access all your patterns from all your tables.")

//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, 15)

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

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