
//Set icon item
setIcon(<immersiveengineering:wooden_device1:1>)

//Set title String
setTitle("Improved Wind Power")

//Set description String
setDescription("The Windmill can be attached to a Kinetic Dynamo to produce RF power if there are no blocks preventing it from turning.")

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

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)