
//Set icon item
setIcon(<exnihilocreatio:item_ore_lead:0>)

//Set title String
setTitle("Pieces of Lead")

//Set description String
setDescription("By sieving crushed diorite with a flint mesh, you will be able to get lead pieces. Four can be combined and smelted into an ingot.")

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

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

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)