{
  "type": "minecraft:entity",
  "random_sequence": "manic:entities/heretic",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "manic:items/occult_veil/heretic",
          "conditions": [
            {
              "condition": "minecraft:any_of",
              "terms": [
                {
                  "condition": "minecraft:random_chance_with_looting",
                  "chance": 0.1,
                  "looting_multiplier": 0.05
                },
                {
                  "condition": "minecraft:damage_source_properties",
                  "predicate": {
                    "source_entity": {
                      "type": "minecraft:creeper",
                      "nbt": "{powered:1b}"
                    }
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:structure_block",
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{CustomModelData:8360000,nucleus:{id:\"death_item\",xp:4},manic:{entity:\"heretic\"}}"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:inverted",
              "term": {
                "condition": "minecraft:entity_properties",
                "entity": "killer",
                "predicate": {
                  "type": "minecraft:wolf"
                }
              }
            },
            {
              "condition": "minecraft:killed_by_player"
            }
          ]
        }
      ]
    }
  ]
}
