
//Set icon item
setIcon(<astralsorcery:itemcraftingcomponent>)

//Set title String
setTitle("More Blue Gems?")

//Set description String
setDescription("Aquamarine is a useful resource for various magical components. Though it can be found in the world, it is difficult to find in the island paradise as they often spawn underwater.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-354,163)

//Rewards
setRewardExperience(4)