
//Set the icon item
setIcon(<minecraft:end_crystal>)

//Set the title String
setTitle("Just One Last Adventure")

//Set the description String
setDescription("Create End Crystals using  glass, the Nether Star and blaze powder. Defeat the Ender Dragon once again")

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

setPos(57,17)

hideLines()

setAnnounceToChat(false)

criteria = addCriteria("crafted", "triumph:player_crafted_item")
criteria.setItem(<minecraft:end_crystal>)

criteria = addCriteria("summoned_dragon", "minecraft:summoned_entity")
criteria.setEntityType("ender_dragon")
