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

//Set title String
setTitle("Auto Harvest")

//Set description String
setDescription("The Plant Gatherer is a machine that automatically harvests virtually any crop in a given radius. Perhaps using a certain group of magical plants with it would be useful...")

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

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

drawDirectLines(true)

//Set the position
setPos(-41,41)

//Rewards
setRewardExperience(4)