
//Set icon item
setIcon(<tconstruct:toolforge>)

//Set title String
setTitle("Tool Master")

//Set description String
setDescription("The Tool Forge is able to create additional tool types that the Tool Station cannot.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-427,-18)

//Rewards
setRewardExperience(4)