{
  "condition": "minecraft:any_of",
  "terms": [
    {
      "condition": "minecraft:all_of",
      "terms": [
        {
          "condition": "minecraft:weather_check",
          "raining": true
        },
        {
          "condition": "minecraft:location_check",
          "predicate": {
            "can_see_sky": true
          }
        }
      ]
    },
    {
      "condition": "minecraft:all_of",
      "terms": [
        {
          "condition": "minecraft:weather_check",
          "thundering": true
        },
        {
          "condition": "minecraft:location_check",
          "predicate": {
            "can_see_sky": true
          }
        }
      ]
    }
  ]
}