//Set icon item
setIcon("minecraft:tallgrass", 1)

//Set title String
setTitle("Grass blower")

//Set description String
setDescription("Be a sickle or just use one!")

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

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


//Sets the requirements to be any. This means that if ANY of the criteria triggers is acquired, the advancement is acquired.
setRequirements("any")