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

//Set title String
setTitle("Why are you here ?")

//Set description String
setDescription("Enter an abandoned mineshaft")

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

//Set the position
setPos(100,110)

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

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

//
setFeature("Mineshaft")