
//Set icon item
setIcon(<bountifulbaubles:disintegrationtablet>)

//Set title String
setTitle("Power of Disintegration")

//Set description String
setDescription("Obtain a disintegration tablet")

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

//Set the position
setPos(-14,-10)


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

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