
//Set icon item
setIcon(<artisanworktables:workshop:7>)

//Set title String
setTitle("Workstation of a Mage")

//Set description String
setDescription("The Mage's Workshop is a specialized crafting table for creating various magical items. Requires various tools and fluids outside of just the recipes.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-393,96)

//Rewards
setRewardExperience(4)