{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 4,
      "bonus_rolls": 2,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:gold_ingot",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:amethyst_shard",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 10
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "kattersstructures:items/boss_key"
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "kattersstructures:items/the_staff_of_ages_nm"
        },
        {
          "type": "minecraft:loot_table",
          "value": "kattersstructures:items/the_beast_within_nm"
        },
        {
          "type": "minecraft:loot_table",
          "value": "kattersstructures:items/the_soul_siphon_nm"
        },
        {
          "type": "minecraft:loot_table",
          "value": "kattersstructures:items/weather_shaper_nm",
          "conditions": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:entity_tags": {
                  "none_of": [
                    "has_heritage"
                  ]
                }
              }
            }
          ]
        }
      ]
    }
  ]
}