//Set icon item
setIcon(<tconstruct:materials, meta:14>)

//Set title String
setTitle("Reinforcement")

//Set description String
setDescription("Reinforcement adds 20% durability to your tool or weapon, with 5 added to your tool or weapon it becomes unbreakable.")

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

//Set the position
setPos(12, 10)

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

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