
//Set icon item
setIcon(<ancientwarfareautomation:auto_crafting>)

//Set title String
setTitle("Guess You're just playing 'Mine' now")

//Set description String
setDescription("Creating an Auto Crafting Station will allow craftsman workers to craft items for you. To make a worker into a craftsman, put a hammer in his inventory.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(71,11)

//Rewards
setRewardExperience(4)