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

//Set the title String
setTitle("Delicious Fih!")

//Set the description String
setDescription("Cath and cook fih!")

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

//Set the position
setPos(57,17)

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

setAnnounceToChat(false)

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

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