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

//Set title String
setTitle("Crafting Station")

//Set description String
setDescription("This crafting station is the better version of the crafting table. not only will it hold items when you leave the GUI but it can also access chests that are next to it.")

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

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

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