
//Set icon item
setIcon(<immersivetech:metal_device>)

//Set title String
setTitle("Getting Heated")

//Set description String
setDescription("Coke Over Preheaters are connected to the sides of an Advanced Coke Over in order for it to accept RF power to create coal coke and creosote.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-40,-39)

//Rewards
setRewardExperience(4)