{
  "parent": "manic:technical/root",
  "criteria": {
    "kill_spectre_entity": {
      "trigger": "minecraft:player_killed_entity",
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "nbt": "{Tags:[\"manic.spectre\"]}"
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"manic.gives_no_sanity\"]}"
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "nbt": "{Tags:[\"manic.reinforcement\"]}"
              }
            }
          }
        ],
        "killing_blow": {
          "tags": [
            {
              "id": "minecraft:is_explosion",
              "expected": false
            }
          ]
        }
      }
    }
  },
  "rewards": {
    "function": "manic:entity/player/sanity/modify/kill_spectre/main"
  },
  "requirements": [
    [
      "kill_spectre_entity"
    ]
  ]
}
