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

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

//Set description String
setDescription("The Expander *Horizontal* 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, 14)

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

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