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

//Set the title String
setTitle("Bake(?) Bread")

//Set the description String
setDescription("Turn wheat into bread")

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

//Set the position
setPos(57,17)

setAnnounceToChat(false)

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

criteria = addCriteria("hasBread", "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:bread>)
