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

//Set title String
setTitle("Beast Slayer")

//Set description String
setDescription("Defeat Cha'garoth, the Dreadbeast")

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


//Set the position
setPos(144,96)


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

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

setFrameType("GOAL")