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

//Set title String
setTitle("Strings")

//Set description String
setDescription("Collect string from Flax Seed or Spiders or craft some with Hemp Fibers")

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

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

criteria = addCriteria("crafted", "triumph:player_crafted_item")
criteria.setItem("minecraft:string")

//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)