
//Set icon item
setIcon(<forge:bucketfilled, nbt:{FluidName: "liquidantimatter"}>)

//Set title String
setTitle("Not Stuff")

//Set description String
setDescription("Fill a bucket with liquid antimatter")

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

//Set the position
setPos(9,146)

hideLines()

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<forge:bucketfilled, nbt:{FluidName: "liquidantimatter"}>)