
//Set icon item
setIcon(<abyssalcraft:eoa>)

//Set title String
setTitle("Fallen, once again")

//Set description String
setDescription("Defeat Asorah, the Fallen")

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

//Set the position
setPos(62,113)


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

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

setFrameType("GOAL")