//Set icon item
setIcon("actuallyadditions:item_flax_seed")

//Set title String
setTitle("Flax Seeds")

//Set description String
setDescription("Collect some Flax Seeds")

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

criteria = addCriteria("hasFiber", "minecraft:inventory_changed")
criteria.addItem("actuallyadditions:item_flax_seed")

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

setRewardExperience(100)