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

//Set title String
setTitle("Do you know lava can burn ?")

//Set description String
setDescription("Why would you even do that ?")

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

//Set the position
setPos(185,70)

//Hide the connection lines
hideLines()

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

//Sets the required damage type for the criteria.
criteria.damageType("lava")