
//Set icon item
setIcon(<forestry:ffarm:0>)

//Set title String
setTitle("Forestry Multiblock Farms")

//Set description String
setDescription("Forestry multiblock farms are multiblocks made up of various amounts of farm blocks. They are often 3x3x3 or 3x4x3 structures (others can be found on the internet) where the size of the structure depends on its range to farm. They farm various resources, set by putting chipssets in a sodering iron, though they farm trees by default. It places soil for the player, though only on connected blocks of the same type as the rest of the farm. Each farm requires at least 1 farm gearbox (for energy input), 1 farm hatch (for item input/output), and 1 farm valve (for water input). They must be stocked with some kind of fertilizer (best made from Apatite).")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-111,131)

//Rewards
setRewardExperience(4)