
//Set icon item
setIcon(<minecraft:string>)

//Set title String
setTitle("Stringy")

//Set description String
setDescription("Get some string from either killing some spiders, or infesting tree leaves with silkworms and breaking them with a crook. (You can get silk worms by breaking normal leaves with a crook).")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadise/sieve")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasString", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<minecraft:string>)

drawDirectLines(true)

//Set the position
setPos(-193,70)

//Rewards
setRewardExperience(4)