
//Set icon item
setIcon(<gamestagebooks:hardmode>)

//Set title String
setTitle("Enter Divinity")

//Set description String
setDescription("Combine various powerful ingredients to create a Book of Divine Knowledge - use it to unleash the divine spirits into the world!")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:example/obtain_ruinedspellbook")
//addParent("triumph:example/obtain_knightmetal")
addParent("triumph:example/obtain_spectralsilt")
//addParent("triumph:example/enter_wasteland")
addParent("triumph:example/obtain_remorsefulgem")

//Set the position
setPos(82,26)

//Adds criteria named "clickedItem" with the trigger type "triumph:right_click_item". This function returns the criteria as an object
criteria = addCriteria("clickedItem", "triumph:right_click_item")

//Sets the required item for the criteria. This is the item that needs to be right clicked with by the player.
criteria.setItem(<gamestagebooks:hardmode>)

setFrameType("GOAL")