
setIcon("minecraft:tallgrass", 1)

setTranslatedTitle("advancements.grass.title")

setTranslatedDescription("advancements.grass.description")

alwaysVisible

addParent("triumph:start/root")

setShowToast(true)

setAnnounceToChat(true)

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

//Sets the required block for the criteria. This is the block that needs to be broken by the player.
criteria.setBlock("minecraft:tallgrass", 1)
setPos(38,-8)