
//Set the icon item
setIcon(<minecraft:wheat>)

//Set the title String
setTitle("First Fruits")

//Set the description String
setDescription("Get wheat")

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

//Set the position
setPos(57,17)

//Hide the connection lines, so I can have a pretty shape
hideLines()

setAnnounceToChat(false)

criteria = addCriteria("hasWheat", "minecraft:inventory_changed")

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

//By not setting anything about requirements here, all criteria are automatically required