
//Set the icon item
setIcon(<pyrotech:material:16>)

//Set the title String
setTitle("Throw another one!")

//Set the description String
setDescription("Use the Granite Anvil to craft a Masonry Brick")

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

//Set the position
setPos(-7,1)

//Hide the connection lines, so I can have a pretty shape
hideLines(false)

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

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

//By not setting anything about requirements here, all criteria are automatically required