
//Set icon item
setIcon(<enderio:block_alloy_smelter>)

//Set title String
setTitle("Upgraded Alloy Maker")

//Set description String
setDescription("The Alloy Smelter is an upgraded version of the Simple Alloy Smelter.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart9/enrichmentchamber")
addParent("triumph:islandparadisepart9/electricalsteelingot")
addParent("triumph:islandparadisepart9/darksteelingot")

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

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

drawDirectLines(true)

//Set the position
setPos(-326,-12)

//Rewards
setRewardExperience(4)