
//Set icon item
setIcon(<qualitytools:reforging_station>)

//Set title String
setTitle("More affordable than a Goblin")

//Set description String
setDescription("I'm sure you noticed by now that most of your tools have some kind of quality to them like another pixelated block game. A Reforging Station will change that quality for the price of 1 of whatever material the item is made of per reforge.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-268,-13)

//Rewards
setRewardExperience(4)