
//Set icon item
setIcon(<buildcraftcore:engine:1>)

//Set title String
setTitle("Kind of Steam Power")

//Set description String
setDescription("Stirling engines are used to provide Buildcraft machines with power when supplied with a redstone signal and a burnable, solid fuel. Most useful on quarrys and other blocks that require more energy.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-366,126)

//Rewards
setRewardExperience(4)