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

//Set title String
setTitle("Ice Dragon Slayer")

//Set description String
setDescription("Having well-enchanted diamond armor, and with the help of some baubles, potions, and golden apples, you should be capable to take down this mighty foe: The Ice Dragon.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart6/adventure")

//Adds criteria named "killed_spider" with the trigger type "minecraft:player_killed_entity". This function returns the criteria as an object
criteria = addCriteria("killed_ice_dragon", "minecraft:player_killed_entity")

//Sets the required entity type for the criteria. This is the entity that the player must kill.
criteria.setEntityType("iceandfire:icedragon")

drawDirectLines(true)

//Set the position
setPos(-416,-45)

//Rewards
setRewardExperience(4)