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

//Set title String
setTitle("The Cooler Clay")

//Set description String
setDescription("Porcelain clay is used for creating crucibles, which melt cobblestone into lava when provided with a heat source underneath such as a torch, lava, or fire.")

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

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

drawDirectLines(true)

//Set the position
setPos(-340,-16)

//Rewards
setRewardExperience(4)