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

//Set title String
setTitle("Expander *Vertical*")

//Set description String
setDescription("The Expander *Vertical* adds +1 to your tool's mining range *NOTE only 2 can be added per tool.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"

addParent("triumph:tinkers/toolstation")
setRequiresParent(true)

//Set the position
setPos(12, 15)

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

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