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

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

//Set description String
setDescription("The Steel Hammer is the top 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/ironhammer")
setRequiresParent(true)

//Set the position
setPos(2, 2)

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

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