
//Set icon item
setIcon(<minecraft:soul_sand>)

//Set title String
setTitle("Defeated: Witherboss")

//Set description String
setDescription("After gathering new resources in the Nether, you've proven your strength against the dimension's boss, the Witherboss.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-160,-17)

//Rewards
setRewardExperience(4)