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

//Set title String
setTitle("Basic Power Hoarding")

//Set description String
setDescription("Creating a 1x1 tower of flywheel storage blocks, with a flywheel controller at the top, will allow you to have a basic way of storing power.")

//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("hasBasicFlywheelStorage", "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:flywheel_storage>)
criteria.addItem(<ancientwarfareautomation:flywheel_controller>)

drawDirectLines(true)

//Set the position
setPos(-88,-8)

//Rewards
setRewardExperience(4)