
//Set icon item
setIcon(<extendedcrafting:interface>)

//Set title String
setTitle("Extended Crafting Automation")

//Set description String
setDescription("The Automation interface is an RF power machine that can automatically craft items made in extended drafting tables. This is done by placing the Automation Interface above any Extended Crafting Table which has the recipe for the item you desire to automate arranged in the table.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-218,135)

//Rewards
setRewardExperience(4)