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

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

//Set description String
setDescription("Ice Dragon Blood is a material needed for creating Ice 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/icedragon")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasIceDragonBlood", "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:ice_dragon_blood>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)