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

//Set title String
setTitle("Try to not kill him")

//Set description String
setDescription("Tame a wolf")

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

//Set the position
setPos(90,21)

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

//Adds criteria named "tamed_horse" with the trigger type "minecraft:tame_animal". This function returns the criteria as an object
criteria = addCriteria("tamed_wolf", "minecraft:tame_animal")

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