//Set icon item
setIcon("minecraft:stone")

//Set title String
setTitle("Mining the things!")

//Set description String
setDescription("Stone and other materials can be mined with the Wooden Pickaxe")

//Set the parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
setParent("triumph:betterwithmods/woodpick")

//Adds criteria named "brokeStone" with the trigger type "triumph:player_break_block". This function returns the criteria as an object
criteria = addCriteria("brokeStone", "triumph:player_break_block")

//Sets the required block ore dict for the criteria. A block from this ore dict needs to be broken by the player.
criteria.setBlockOreDict("stone")