{
  "condition": "minecraft:all_of",
  "terms": [
    {
      "condition": "minecraft:entity_scores",
      "entity": "this",
      "scores": {
        "sanity": {
          "max": 19
        }
      }
    },
    {
      "condition": "minecraft:location_check",
      "predicate": {
        "light": {
          "light": {
            "min": 13
          }
        }
      }
    }
  ]
}
