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

//Set title String
setTitle("Growin Dragons")

//Set description String
setDescription("Dragonmeal is an item that will add one days worth of growth to a dragon.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart6/dragoneggred")
addParent("triumph:islandparadisepart6/dragonegggreen")
addParent("triumph:islandparadisepart6/dragoneggbronze")
addParent("triumph:islandparadisepart6/dragoneggblue")
addParent("triumph:islandparadisepart6/dragoneggwhite")
addParent("triumph:islandparadisepart6/dragoneggsapphire")
addParent("triumph:islandparadisepart6/dragoneggsilver")
addParent("triumph:islandparadisepart6/dragonegggray")

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

drawDirectLines(true)

//Set the position
setPos(-430,-154)

//Rewards
setRewardExperience(4)