
//Set icon item
setIcon(<exnihilocreatio:hammer_stone>)

//Set title String
setTitle("Hammer Time")

//Set description String
setDescription("Breaking cobblestone with this item will turn it into gravel. Subsequently, gravel to sand and sand to dust.")

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

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

drawDirectLines(true)

//Set the position
setPos(-144,26)

//Rewards
setRewardExperience(4)