
//Set icon item
setIcon(<modularmachinery:itemblueprint, nbt:{dynamicmachine: "modularmachinery:advanced_alloysmelter"}>)

//Set title String
setTitle("Advanced Multiblocks: Advanced Alloy Smelting Factory")

//Set description String
setDescription("The Advanced Alloy Smelting Factory is a very advanced multiblock structure used for creating many complex alloys. Crafting the Machine Blueprint for it will guide you through creating the structure.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:islandparadisepart9/refinedobsidianingot")
addParent("triumph:islandparadisepart9/modulariumingot")
addParent("triumph:islandparadisepart9/alloysmelter")

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<modularmachinery:itemblueprint, nbt:{dynamicmachine: "modularmachinery:advanced_alloysmelter"}>)

drawDirectLines(true)

//Set the position
setPos(-181,82)

//Rewards
setRewardExperience(4)