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

//Set title String
setTitle("The Beginning.")

//Set description String
setDescription("Kill the Wither")

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

setFrameType("challenge")

//Set the position
setPos(34,41)

//Hide the connection lines, so I can have a pretty shape
hideLines()

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