//Set icon item
setIcon(<cookingforblockheads:oven>)

//Set title String
setTitle("Multiblock Kitchen")

addParent("triumph:3cooking/tools")

//Set description String
setDescription("Eating 32 different foods? Easy! Make a cooking table, fridge, sink, tool rack, toaster, kitchen counter, and kitchen corner to easily see what options are availble from what ingredients you have.")
setRequiresParent(true)
//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
//addParent("triumph:example/root")

//Set the position
setPos(100, 0)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<cookingforblockheads:cooking_table>);
criteria.addItem(<cookingforblockheads:fridge>);
criteria.addItem(<cookingforblockheads:sink>);
criteria.addItem(<cookingforblockheads:tool_rack>);
criteria.addItem(<cookingforblockheads:toaster>);
criteria.addItem(<cookingforblockheads:counter>);
criteria.addItem(<cookingforblockheads:corner>);


