
//Set icon item
setIcon(<exnihilocreatio:item_ore_osmium>)

//Set title String
setTitle("New Metal Discovered?")

//Set description String
setDescription("The Holystone in the Aether seems to be rich with minerals, both familar, as well as new. Perhaps something could be acquired from sieving it?")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-188,-74)

//Rewards
setRewardExperience(4)