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

//Set title String
setTitle("Keeping things Bright")

//Set description String
setDescription("By sieving dust with an iron mesh, you will be able to get glowstone. Very useful for making machinary and magical objects.")

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

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

drawDirectLines(true)

//Set the position
setPos(31,6)

//Rewards
setRewardExperience(4)