
//Set icon item
setIcon(<thermalfoundation:material:163>)

//Set title String
setTitle("The Bronze Age")

//Set description String
setDescription("Using your new smeltery, melt 3 pieces of copper with one piece of tin to create bronze. Essential for getting into the next tier of items.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(0,-45)

//Rewards
setRewardExperience(4)