
//Set icon item
setIcon(<industrialforegoing:plant_interactor>)

//Set title String
setTitle("Auto Non-Destroying Harvest")

//Set description String
setDescription("The Plant Interactor is a machine that automatically interacts with virtually any crop in a given radius. We have the nifty mod on here where you can right click to harvest plants soo...")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-47,127)

//Rewards
setRewardExperience(4)