
//Set icon item
setIcon(<msmlegacy:adminium_ark>)

//Set title String
setTitle("Ultimate Power")

//Set description String
setDescription("Every End is a new Beginning")

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

//Set the position
setPos(246,26)

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

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

setFrameType("GOAL")

addRewardFunction("triumph:goal")

setRewardExperience(10)