//Set icon item
setIcon(<magneticraft:rocky_chunks, meta:2>)

//Set title String
setTitle("Rocky Chunks *Copper*")

//Set description String
setDescription("Rocky Chunks are what you get from crushing ores with The Crushing Table.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"

addParent("triumph:magneticraft/crushingtable")
setRequiresParent(true)

//Set the position
setPos(4, 0)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

//Adds criteria named "hasRocky_Chunks" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasRocky_Chunks", "minecraft:inventory_changed")

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<magneticraft:rocky_chunks, meta:2>)