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