//Set icon item
setIcon(<tconstruct:edible, meta:10>)

//Set title String
setTitle("Monster_Jerky")

//Set description String
setDescription("Putting Rotten Flest onto the Drying Rack over time will turn it into Monster Jerky.")

//Add a parent advancement. The syntax is "modid:folder/path/to/the/advancement/then/filename"
addParent("triumph:tinkers/dryingrack")
setRequiresParent(true)

//Set the position
setPos(10, 12)

//Set this to use direct lines, so I can have a pretty shape
drawDirectLines(true)

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

//Adds the required item for the criteria. This is the item that needs to be in the player inventory.
criteria.addItem(<tconstruct:edible, meta:10>)