
//Set icon item
setIcon(<thermalfoundation:upgrade:2>)

//Set title String
setTitle("A New Machine Upgrade")

//Set description String
setDescription("Upgrade kits upgrade the speed and power storage of Thermal Expansion machines. Each tier of upgrade opens a spot for an augmentation in a machine.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasSignalumUpgradeKit", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<thermalfoundation:upgrade:2>)

drawDirectLines(true)

//Set the position
setPos(-197,127)

//Rewards
setRewardExperience(4)