{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 3.0,
        "max": 7.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "mysticalagriculture:iron_essence",
          "type": "minecraft:item",
          "weight": 70,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 15.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:gold_essence",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 10.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:emerald_essence",
          "type": "minecraft:item",
          "weight": 40,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:diamond_essence",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:experience_bottle",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 28.0,
                "max": 40.0,
                "type": "minecraft:uniform"
              },
              "treasure": true
            }
          ]
        },
        {
          "name": "minecraft:dragon_breath",
          "type": "minecraft:item",
          "weight": 5
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 19
        },
        {
          "name": "minecraft:elytra",
          "type": "minecraft:item",
          "weight": 1
        }
      ]
    },
    {
      "rolls": {
        "min": 2.0,
        "max": 5.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:iron_nugget",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:gold_nugget",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "mysticalagriculture:lapis_lazuli_essence",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6.0,
                "max": 20.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "repurposed_structures:chests/lucky_pool"
        }
      ]
    },
    {
      "rolls": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 130
        },
        {
          "name": "minecraft:black_banner",
          "type": "minecraft:item",
          "weight": 30,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{BlockEntityTag:{Patterns:[{Pattern:flo,Color:10},{Pattern:flo,Color:2},{Pattern:flo,Color:15},{Pattern:bt,Color:9},{Pattern:tt,Color:9},{Pattern:bo,Color:10},{Pattern:bs,Color:15},{Pattern:ts,Color:15},{Pattern:cbo,Color:10},{Pattern:cbo,Color:15},{Pattern:bo,Color:2},{Pattern:bo,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:experience_bottle",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        }
      ]
    }
  ]
}