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