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

//Set title String
setTitle("Starting Star Magic")

//Set description String
setDescription("The Resonanting Wand is a useful tool for finding rock crystals scattered throughout the world. Must be crafted in an Astral Sorcery Temple that has a floating crystal in a crafting table. For more information on all things Astral Sorcery, please consult your Astral Tome.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasResonatingWand", "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:itemwand>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)