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

//Set title String
setTitle("Part Builder")

//Set description String
setDescription("This is what allows you to use the patterns to craft the parts for tools and weapons.")

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

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

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