{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "minecraft:entities/pillager"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:raidhorn",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.1
            },
            {
              "condition": "minecraft:entity_scores",
              "entity": "attacking_player",
              "scores": {
                "hardmode": 1
              }
            },
            {
              "condition": "minecraft:any_of",
              "terms": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "nbt": "{Tags:[special]}"
                  }
                },
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "equipment": {
                      "head": {
                        "items": "#minecraft:banners"
                      }
                    }
                  }
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:illager_hat"
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "nbt": "{Tags:[hatillager]}"
          }
        }
      ]
    }
  ]
}