{
  "criteria": {
    "consume_waterskin": {
      "trigger": "minecraft:effects_changed",
      "conditions": {
        "effects": {
          "minecraft:luck": {
            "amplifier": 248,
            "visible": false
          }
        }
      }
    }
  },
  "requirements": [
    [
      "consume_waterskin"
    ]
  ],
  "rewards": {
    "function": "overly_realistic:players/foods/waterskin/waterskin_drink_dirty"
  }
}