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

//Set title String
setTitle("Getting a better 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:islandparadisepart3/electrum")
addParent("triumph:islandparadisepart3/upgradekitinvar")

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

drawDirectLines(true)

//Set the position
setPos(-532,-59)

//Rewards
setRewardExperience(4)