//Set icon item
setIcon(<torchmaster:mega_torch>)
//Set title String
setTitle("Get Out of Here!")
addParent("triumph:9powerfulitems/root")
//Set description String
setDescription("Obtain a mega torch to stop mob spawns in your area")
//setRequiresParent(true)

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
//addParent("triumph:example/root")
//Set the position
setPos(150, 0)
//Set this to use direct lines, so I can have a pretty shape
//drawDirectLines(true)
//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasTorch", "minecraft:inventory_changed")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<torchmaster:mega_torch>)

//setUncompletedLineColor(250, 250, 250)
//
//setUncompletedIconColor(250, 250, 250)