{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "name": "minecraft:golden_apple",
          "type": "minecraft:item",
          "weight": 20
        },
        {
          "name": "minecraft:enchanted_golden_apple",
          "type": "minecraft:item"
        },
        {
          "name": "minecraft:name_tag",
          "type": "minecraft:item",
          "weight": 30
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:iron_pickaxe",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:bow",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 1.0,
                "max": 15.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "type": "minecraft:empty",
          "weight": 5
        }
      ]
    },
    {
      "rolls": {
        "min": 2.0,
        "max": 4.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:iron_ingot",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:gold_ingot",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:redstone",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 9.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:lapis_lazuli",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 9.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:diamond",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 2.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:coal",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:tipped_arrow",
          "type": "minecraft:item",
          "weight": 7,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{Potion:\"minecraft:long_slowness\"}"
            }
          ]
        },
        {
          "name": "minecraft:cookie",
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:sweet_berries",
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:blue_ice",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:packed_ice",
          "type": "minecraft:item",
          "weight": 7,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:ice",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 6.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 3,
      "entries": [
        {
          "name": "minecraft:rail",
          "type": "minecraft:item",
          "weight": 20,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4.0,
                "max": 8.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:powered_rail",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:detector_rail",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:activator_rail",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:torch",
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 16.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 2
        },
        {
          "name": "minecraft:black_banner",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function":"set_nbt",
              "tag":"{BlockEntityTag:{Patterns:[{Pattern:rud,Color:11},{Pattern:bri,Color:9},{Pattern:gra,Color:15},{Pattern:gru,Color:3},{Pattern:gru,Color:3},{Pattern:cbo,Color:15},{Pattern:bo,Color:15},{Pattern:sku,Color:15},{Pattern:sku,Color:11},{Pattern:sku,Color:3},{Pattern:drs,Color:3},{Pattern:ss,Color:15}]}}"
            }
          ]
        },
        {
          "name": "minecraft:tnt",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ]
        }
      ]
    },
    {
        "rolls": 1,
        "entries": [
            {
                "name": "frozenup:frozen_truffle",
                "type": "minecraft:item",
                "weight": 3
            }
        ]
    }
  ]
}