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

//Set title String
setTitle("First Energy Source")

//Set description String
setDescription("Using a windmill controller and a square of width 1 and equal length and height of windmill blades connected to it, you can generate your first energy using RF.")

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

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

drawDirectLines(true)

//Set the position
setPos(-125,26)

//Rewards
setRewardExperience(4)