
//Set icon item
setIcon(<futuremc:smithing_table>)

//Set title String
setTitle("Armor Smith")

//Set description String
setDescription("The Smithing Table allows diamond gear to be upgraded to netherite at the cost of one netherite ingot per piece.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-110,71)

//Rewards
setRewardExperience(4)