
//Set icon item
setIcon(<portalgun:item_portalgun>)

//Set title String
setTitle("Cara Mia Addio")

//Set description String
setDescription("Craft a futuristic machine out of material holding the very fabric of the world")

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

//Set the position
setPos(116,-50)

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

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

setFrameType("GOAL")

hideLines()

addRewardFunction("triumph:goal")

setRewardExperience(10)