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

//Set title String
setTitle("Into Fire")

//Set description String
setDescription("Relieve a Blaze of its rod")

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

//Set the position
setPos(34,41)

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

setAnnounceToChat(false)

//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.
criteria.addItem(<minecraft:blaze_rod>)