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

//Set title String
setTitle("Dragonbone")

//Set description String
setDescription("Dragon Bones are a material needed for creating various items from Ice and Fire. Obtained by right clicking a dead dragon skeleton 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("hasDragonbone", "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:dragonbone>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)