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

//Set title String
setTitle("Eggs of Silver")

//Set description String
setDescription("Dragon Eggs are items that will hatch baby dragons. Can be obtained by right clicking a dead dragon corpse of a female, Stage 4+ dragon with an empty hand. You will need a dragon to work the dragon forge.")

//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("hasDragonEggSilver", "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:dragonegg_silver>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)