//Set the toast notification in the top right corner of the screen to not show up when this advancement is achieved.
setShowToast(true)

//Set the advancement to not send a chat message when it is achieved.
setAnnounceToChat(true)

//Set the icon item
setIcon(<tconstruct:smeltery_controller>)

//Set the title String
setTitle("Gearing through Shmelting")

//Set the description String
setDescription("Obtain at least 8 Seared Bricks, a Smeltery Controller, a Seared Tank, 2 Seared Drains, 2 Seared Faucets, a Casting Table, and a Casting Basin. (See the Tinker's Construct book for more info)")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:misc/root")


//Hide the connection lines, so I can have a pretty shape
hideLines()

//Adds criteria named "crafted" with the trigger type "triumph:player_crafted_item". This function returns the criteria as an object
criteriaBricks = addCriteria("hasBricks", "minecraft:inventory_changed")

//Sets the item for the criteria. This is the item that needs to be crafted.
criteriaBricks.addItem(<tconstruct:seared:3>)
CriteriaBricks.setCount(8)

criteriaController = addCriteria("hasController", "minecraft:inventory_changed")
criteriaController.addItem(<tconstruct:smeltery_controller:0>)

criteriaTank = addCriteria("hasTank", "minecraft:inventory_changed")
criteriaTank.addItem(<tconstruct:seared_tank:0>)

criteriaDrains = addCriteria("hasDrains", "minecraft:inventory_changed")
criteriaDrains.addItem(<tconstruct:smeltery_io:0>)
CriteriaDrains.setCount(2)

criteriaCastingTable = addCriteria("hasCastingTable", "minecraft:inventory_changed")
criteriaCastingTable.addItem(<tconstruct:casting:0>)

criteriaCastingBasin = addCriteria("hasCastingTable", "minecraft:inventory_changed")
criteriaCastingBasin.addItem(<tconstruct:casting:1>)

criteriaFaucets = addCriteria("hasDrains", "minecraft:inventory_changed")
criteriaFaucets.addItem(<tconstruct:faucet:0>)
CriteriaFaucets.setCount(2)

//By not setting anything about requirements here, all criteria are automatically required
setPos(-349,363)