
//Set icon item
setIcon(<aether_legacy:ambrosium_torch>)

//Set title String
setTitle("Why Torch no Work?")

//Set description String
setDescription("Ambrosium Torches are the only torches that can be used in the Aether.")

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

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<aether_legacy:ambrosium_torch>)

drawDirectLines(true)

//Set the position
setPos(-188,87)

//Rewards
setRewardExperience(4)