
//Set icon item
setIcon(<bonsaitrees:bonsaipot>)

//Set title String
setTitle("Fast Growing Trees")

//Set description String
setDescription("Create a bonsai pot to quickly grow trees")

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

//Set the position
setPos(314,29)

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

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