{
	"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"
				},
        {
					"type": "minecraft:loot_table",
					"value": "kattersstructures:items/the_beast_within"
				},
        {
					"type": "minecraft:loot_table",
					"value": "kattersstructures:items/the_soul_siphon"
				},
				{
					"type": "minecraft:loot_table",
					"value": "kattersstructures:items/weather_shaper",
					"conditions": [
						{
							"condition": "minecraft:inverted",
							"term": {
								"condition": "minecraft:entity_properties",
								"entity": "this",
								"predicate": {
									"type_specific": {
										"type": "minecraft:player"
									},
                  "nbt": "{Tags:[\"has_heritage\"]}"
								}
							}
						}
					]
				}
			]
		}
	]
}