//Set icon item
setIcon(<magneticraft:crushing_table>)

//Set title String
setTitle("Crushing Table")

//Set description String
setDescription("The Crushing Table is used to break down your ores for ore doubling as well as turn ingots into plates.")

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

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

//Set the position
setPos(3, 0)

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

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