
//Set icon item
setIcon(<inspirations:dyed_bottle>)

//Set title String
setTitle("Better Color Making")

//Set description String
setDescription("Right clicking, or dropping a dye in a cauldron will dye the water the color of the dye. If the water is already dyed, the colors will mix allowing to color leather armor. If the cauldron contains just a single dye rather than multiple dyes mixed, it can additionally be used to dye wool and using an empty bottle can give you bottled dye that can be used as a normal dye.")

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

//Set the position
//setPos(80,65)

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

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

setRequirements("any")
setPos(-85,58)