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

//Set title String
setTitle("Scales of blue")

//Set description String
setDescription("Blue Scales from a Blue colored dragon. Obtained by right clicking a dead dragon corpse with an empty hand.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart6/firedragon")
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("hasBlueDragonScales", "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:dragonscales_blue>)

drawDirectLines(true)

//Set the position
setPos(-361,26)

//Rewards
setRewardExperience(4)