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

//Set title String
setTitle("Unlimited Power??")

//Set description String
setDescription("Redstone engines are used to provide Buildcraft machines and pipes with power when supplied with a redstone signal. Most useful on pumps as they do not produce much energy and it is recommended to make multiple.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)