
//Set icon item
setIcon(<thermalexpansion:dynamo:1>)

//Set title String
setTitle("Draining the Nether")

//Set description String
setDescription("Magmatic dynamos generate a moderate amount of RF when provided with lava as a fuel source.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-496,-20)

//Rewards
setRewardExperience(4)