{
  "criteria": {
    "consume_item": {
      "trigger": "minecraft:consume_item",
      "conditions": {
        "item": {
          "items": "cooked_cod"
        }
      }
    }
  },
  "requirements": [
    [
      "consume_item"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/foods/generic/eat_cooked_cod"
  }
}