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

//Set title String
setTitle("Getting Clay")

//Set description String
setDescription("Mining any clay as you find it will help with ore processing in the near future.")

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

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

drawDirectLines(true)

//Set the position
setPos(-290,-45)

//Rewards
setRewardExperience(4)