
//Set icon item
setIcon(<immersiveengineering:metal_device1:2>)

//Set title String
setTitle("Kinetic NRG")

//Set description String
setDescription("The Kinetic Dynamo is used with Immersive Engineering Windmills and Waterwheels to Generate power.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)