
//Set icon item
setIcon(<exnihilocreatio:block_barrel0>)

//Set title String
setTitle("Get a barrel")

//Set description String
setDescription("Acquire a wooden crucible")

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

//Set the position
setPos(94,96)

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

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