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

//Set title String
setTitle("Craft a better Pickaxe!")

//Set description String
setDescription("Craft a STONE PICKAXE to mine harder material like IRON ORE!")

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

criteria = addCriteria("hasStonePick", "minecraft:inventory_changed")
criteria.addItem("minecraft:stone_pickaxe")
//Sets the experience reward for the advancement.
setRewardExperience(10)

//By not setting anything about requirements here, all criteria are automatically required