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

//Set title String
setTitle("Advanced Multiblocks: Master Assembler 2k20")

//Set description String
setDescription("The Master Assembler 2k20 is a very advanced multiblock structure used for creating many different blocks and components. 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/modulariumingot")

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasMasterAssemblerBlueprint", "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:master_assembler"}>)

drawDirectLines(true)

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

//Rewards
setRewardExperience(4)