[
  {
    "condition": "minecraft:all_of",
    "terms": [
      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "location": {
            "can_see_sky": true
          }
        }
      },
      {
        "condition": "minecraft:inverted",
        "term": {
          "condition": "minecraft:reference",
          "name": "overly_realistic:world/time/is_night"
        }
      }
    ]
  }
]