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

//Set title String
setTitle("Craft a stone sword!")

//Set description String
setDescription("Craft a STONE SWORD, a MUCH better weapon!")

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

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

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