{
  "pools": [
    {
      "rolls": {
        "min": 1,
        "max": 1
      },
      "entries": 
      [
        {"type": "item","name": "endrem:cryptic_eye","weight": 25,"functions": [{"function": "set_count","count":{"min": 0,"max": 1}}]},
        {"type": "item","name": "dimdungeons:item_portal_key","weight": 20,"functions": [{"function": "set_count","count":{"min": 1,"max": 4}}]},
        {"type": "item","name": "dimdungeons:item_blank_advanced_key","weight": 10,"functions": [{"function": "set_count","count":{"min": 0,"max": 1}}]},
        {"type": "item","name": "dimdungeons:item_secret_bell","weight": 20,"functions": [{"function": "set_count","count":{"min": 1,"max": 1}}]},
        {"type": "item","name": "dimdungeons:item_homeward_pearl","weight": 20,"functions": [{"function": "set_count","count":{"min": 1,"max": 8}}]}
      ]
    },
    {
      "rolls": {
        "min": 1,
        "max": 1
      },
  	  "name":"dimdungeons:pool_2",
      "entries": [
        {
          "type": "item",
          "name": "minecraft:emerald",
          "weight": 3,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 8,
                "max": 16
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:diamond",
          "weight": 3,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 2,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:sea_lantern",
          "weight": 3,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 8,
                "max": 12
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:ender_chest",
          "weight": 3,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:ghast_tear",
          "weight": 3,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]		  
        },
        {
          "type": "item",
          "name": "minecraft:sculk_catalyst",
          "weight": 3,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]		  
        },
        {
		  "type": "item",
		  "name": "minecraft:enchanted_book",
		  "entryName": "dimdungeons:ebook_mending",
		  "weight": 4,
		  "functions": [
		    {
			  "function": "set_nbt",
			  "tag": "{StoredEnchantments:[{id:\"minecraft:mending\",lvl:1}]}"
			}
		  ]
		},	
        {
          "type": "item",
          "name": "minecraft:diamond_chestplate",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:diamond_helmet",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:diamond_leggings",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:diamond_boots",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },		
        {
          "type": "item",
          "name": "minecraft:diamond_pickaxe",
          "weight": 4,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },		
        {
          "type": "item",
          "name": "minecraft:diamond_sword",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:crossbow",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:bow",
          "weight": 3,
          "functions": [
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 30,
                "max": 30
              }
            }
          ]
        },		
        {
          "type": "item",
          "name": "dimdungeons:item_portal_key",
          "weight": 7,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },	
        {
          "type": "item",
          "name": "dimdungeons:item_secret_bell",
          "weight": 4,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },	
        {
          "type": "item",
          "name": "dimdungeons:block_key_charger",
          "weight": 4,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },	
        {
          "type": "item",
          "name": "dimdungeons:block_portal_crown",
          "weight": 5,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },		
        {
          "type": "loot_table",
          "name": "dimdungeons:chests/trophy_1",
          "weight": 1
        },
        {
          "type": "loot_table",
          "name": "dimdungeons:chests/chestbooks_2",
          "weight": 32
        }
      ]
    }
  ]
}