
//Set icon item
setIcon(<botania:fertilizer>)

//Set title String
setTitle("Having Flower Picking Difficulties?")

//Set description String
setDescription("Floral Fertilizer will grow mystical flowers on grass like bonemeal grows normal ones.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-157,-7)

//Rewards
setRewardExperience(4)