{
  "parent": "manic:technical/root",
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_interacted_with_entity",
      "conditions": {
        "item": {
          "items": [
            "minecraft:name_tag"
          ]
        },
        "entity": [
          {
            "condition": "minecraft:any_of",
            "terms": [
              {
                "condition": "minecraft:entity_properties",
                "entity": "this",
                "predicate": {
                  "nbt": "{Tags:[\"manic.despawns\"]}"
                }
              },
              {
                "condition": "minecraft:entity_properties",
                "entity": "this",
                "predicate": {
                  "nbt": "{Tags:[\"manic.corpsecreep.despawns\"]}"
                }
              }
            ]
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "manic:entity/technical/spectre/nametag/nametag"
  },
  "requirements": [
    [
      "requirement"
    ]
  ]
}
