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

//Set title String
setTitle("Power from Water")

//Set description String
setDescription("Using a waterwheel generator and placing it in front of a 3 block long, one block wide hole of water one block below it will generate energy from the flowing current.")

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

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

drawDirectLines(true)

//Set the position
setPos(-105,53)

//Rewards
setRewardExperience(4)