
//Set icon item
setIcon(<divinerpg:divine_shards>)

//Set title String
setTitle("Divine Shards")

//Set description String
setDescription("Obtain some divine shards and use them to create powerful equipment or divine rock to use as a portal to Eden")

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

//Set the position
setPos(116,1)


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

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