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

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

//Set description String
setDescription("Venturing 1000 blocks from the center of the world with 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 Fire Dragon.")

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

//Adds criteria named "killed_spider" with the trigger type "minecraft:player_killed_entity". This function returns the criteria as an object
criteria = addCriteria("killed_fire_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:firedragon")

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)