
//Set icon item
setIcon(<snad:snad>)

//Set title String
setTitle("Sugarcane does Grow Faster on this")

//Set description String
setDescription("Snad is a variant of sand that increases the growth speed of sugar cane planted on it.")

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

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

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

drawDirectLines(true)

//Set the position
setPos(-248,61)

//Rewards
setRewardExperience(4)