//Set icon item
setIcon(<magneticraft:multiblock_parts>)

//Set title String
setTitle("Machine Block")

//Set description String
setDescription("The Machine Block is the main block you will need in crafting different power generating mechines.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"

addParent("triumph:magneticraft/lightplates")
setRequiresParent(true)

//Set the position
setPos(3, 2)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

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

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