//Set icon item
setIcon("minecraft:blaze_rod")

//Set title String
setTitle("Blaze Rods!")

//Set description String
setDescription("Kill a Blaze and collect it's blaze rod!")

//Set the parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
setParent("triumph:betterwithmods/nether")

//Adds criteria named "killed_spider" with the trigger type "minecraft:player_killed_entity". This function returns the criteria as an object
criteria = addCriteria("killed_blaze", "minecraft:player_killed_entity")
//Sets the required entity type for the criteria. This is the entity that the player must kill.
criteria.setEntityType("minecraft:blaze")
criteria = addCriteria("hasBlazeRod", "minecraft:inventory_changed")
//Adds the required item for the criteria. This is the item that needs to be in the player inventory. First variable is the item name, second is the metadata and is not required.
criteria.addItem("minecraft:blaze_rod")



