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

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

//Set description String
setDescription("Gray Scales from a Gray 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("hasGrayDragonScales", "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_gray>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)