{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "minecraft:entities/wither_skeleton"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:strengthbrick",
          "conditions": [
            {
              "condition": "minecraft:any_of",
              "terms": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "attacking_player",
                  "predicate": {
                    "nbt": "{Tags:[luckyfoot]}"
                  }
                },
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "attacking_player",
                  "predicate": {
                    "nbt": "{Inventory:[{components:{\"minecraft:custom_data\":{luck:tag}}}]}"
                  }
                }
              ]
            },
            {
              "condition": "minecraft:random_chance",
              "chance": 0.15
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:wither_skeleton_skull",
          "conditions": [
            {
              "condition": "minecraft:random_chance_with_enchanted_bonus",
              "unenchanted_chance": 0,
              "enchanted_chance": {
                "type": "minecraft:linear",
                "base": 0.25,
                "per_level_above_first": 0.1
              },
              "enchantment": "survivalplus:beheading"
            }
          ]
        }
      ]
    }
  ]
}