
//Set icon item
setIcon(<artisanworktables:artisans_hammer_iron>)

//Set title String
setTitle("Makin Plates")

//Set description String
setDescription("The Artisans's Iron Hammer is a tool used to create metal plates.")

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

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<artisanworktables:artisans_hammer_iron>)

drawDirectLines(true)

//Set the position
setPos(86,-24)

//Rewards
setRewardExperience(4)