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

//Set title String
setTitle("Crystals of Rock")

//Set description String
setDescription("Rock Crystals are useful for various Astral Sorcery functions. They can be found near the bottoms of floating islands.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)