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

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

//Set description String
setDescription("The Iron Hammer is the mid tier hammer you will use with the Crushing Table 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(2, 1)

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

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