
//Set icon item
setIcon(<exnihilocreatio:item_mesh:1>)

//Set title String
setTitle("Can I use my sieve now?")

//Set description String
setDescription("Right clicking your sieve with this will allow to start using it to obtain resources. Check sieve uses by mesh type with JEI by hitting 'U' on the sieve in the menu.")

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

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)