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

//Set title String
setTitle("Hey, what happened ?")

//Set description String
setDescription("Killed by magic damage")

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

//Set the position
setPos(167,120)

//Hide the connection lines
hideLines()

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

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