
//Set icon item
setIcon(<pyrotech:bloomery>)

//Set title String
setTitle("The start of something big")

//Set description String
setDescription("Acquire your first Bloomery")

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

addRewardFunction("triumph:bloomery_gamestage")

//Set the position
setPos(162,75)

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

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

//These are trigger advancements and will always remain hidden
alwaysHidden()