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

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

//Set description String
setDescription("The Plant Sower is a machine that automatically plants 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("hasPlantSower", "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_sower>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)