{
  "criteria": {
    "consume_food": {
      "trigger": "minecraft:effects_changed",
      "conditions": {
        "effects": {
          "minecraft:luck": {
            "amplifier": 247,
            "visible": false
          }
        }
      }
    }
  },
  "requirements": [
    [
      "consume_food"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/foods/juicy_food_use"
  }
}