{
  "criteria": {
    "use_food": {
      "trigger": "minecraft:using_item",
      "conditions": {
        "item": {
          "items": "minecraft:melon_slice"
        }
      }
    }
  },
  "requirements": [
    [
      "use_food"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/foods/watermelon_slice_using"
  }
}