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

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

//Set description String
setDescription("Silver Scales from a Silver 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("hasSilverDragonScales", "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_silver>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)