//Set icon item
setIcon(<tconstruct:clay_cast>)

//Set title String
setTitle("Clay Cast")

//Set description String
setDescription("Create any Clay Cast")

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

//Set the position
setPos(8, 15)

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

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