
//Set icon item
setIcon(<botania:specialflower, nbt:{type:"puredaisy"}>)

//Set title String
setTitle("Flowers of Purity")

//Set description String
setDescription("Pure Daisys are special flowers that, when surrounded by either stone or logs will make living rock or living wood respectfully.")

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

//Adds criteria named "hasFlint" with the trigger type "minecraft:inventory_changed". This function returns the criteria as an object
criteria = addCriteria("hasPureDaisy", "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:specialflower, nbt:{type:"puredaisy"}>)

drawDirectLines(true)

//Set the position
setPos(-79,26)

//Rewards
setRewardExperience(4)