
//Set icon item
setIcon(<extrautils2:user>)

//Set title String
setTitle("Can you use this for me?")

//Set description String
setDescription("A mechanical user is used to simulate user clicks, allowing for the automation of things like placing blocks (or harvesting oreberries).")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-201,-8)

//Rewards
setRewardExperience(4)