
//Set icon item
setIcon(<minecraft:dye:4>)

//Set title String
setTitle("Lapis La-useless?")

//Set description String
setDescription("By sieving gravel with a flint mesh (or on the off chance you found some naturally) you will be able to get lapis.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasLapis", "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:dye:4>)

drawDirectLines(true)

//Set the position
setPos(-134,154)

//Rewards
setRewardExperience(4)