
//Set icon item
setIcon(<minecraft:fire_charge>)

//Set title String
setTitle("Escaped")

//Set description String
setDescription("Get the Virus Research and survive until Extraction")

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

//Set the position
setPos(100,65)

//Hide the connection lines, so I can have a pretty shape
hideLines()

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasstage26", "triumph:gamestage")
criteria2 = addCriteria("hasresearch", "triumph:gamestage")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.setStage("26")
criteria2.setStage("research")
addRewardFunction("triumph:endgame")

