
//Set icon item
setIcon(<iceandfire:fire_dragon_blood>)

//Set title String
setTitle("Blood of Fire")

//Set description String
setDescription("Fire Dragon Blood is a material needed for creating Fire Dragonsteel Ingots. Obtained by right clicking a dead dragon corpse with an empty bottle.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-487,-45)

//Rewards
setRewardExperience(4)