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

//Set title String
setTitle("Unlock Vethea")

//Set description String
setDescription("Discover the knowledge of how to enter the nightmare")

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

//Set the position
setPos(162,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:vethea>)

setFrameType("GOAL")