
//Set icon item
setIcon(<ancientwarfareautomation:stirling_generator>)

//Set title String
setTitle("First Steam-ish Power!")

//Set description String
setDescription("The striling generator is a more stable power source that can be made in the engineering station after being researched. Takes burnable, solid fuels, such as coal and charcoal, to generate energy.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-95,87)

//Rewards
setRewardExperience(4)