{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 2.0,
        "max": 8.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "minecraft:coal",
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 4.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:iron_nugget",
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 2.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:bread",
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:stone_hoe",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.1,
                "max": 0.9
              }
            }
          ]
        },
        {
          "name": "minecraft:wheat",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:apple",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald",
          "weight": 1
        }
      ]
    },
    {
      "rolls": 2,
      "entries": [
        {
          "name": "minecraft:fishing_rod",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:stone_hoe",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:hay_block",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:fishing_rod",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:book",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ]
        },
        {
          "name": "minecraft:leather_helmet",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:leather_chestplate",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:leather_leggings",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:leather_boots",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:saddle",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:bucket",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:shears",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:golden_apple",
          "type": "minecraft:item",
          "weight": 1
        },
        {
          "name": "minecraft:map",
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "repurposed_structures:bastion_underground",
              "decoration": "banner_gray",
              "zoom": 2,
              "skip_existing_chunks": false
            }
          ]
        }
      ]
    },
    {
      "rolls": 0,
      "bonus_rolls": 1,
      "entries": [
        {
          "name": "minecraft:pink_banner",
          "type": "minecraft:item",
          "weight": 25,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{BlockEntityTag:{Patterns:[{Pattern:cs,Color:0},{Pattern:cs,Color:0},{Pattern:cs,Color:0},{Pattern:bo,Color:3},{Pattern:bo,Color:3},{Pattern:bo,Color:3}]}}"
            }
          ]
        },
        {
          "type": "minecraft:empty",
          "weight": 160
        },
        {
          "name": "minecraft:gray_banner",
          "type": "minecraft:item",
          "weight": 140,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{BlockEntityTag:{Patterns:[{Pattern:flo,Color:0},{Pattern:bo,Color:0},{Pattern:cs,Color:7},{Pattern:mc,Color:8},{Pattern:flo,Color:7},{Pattern:bo,Color:7},{Pattern:tt,Color:7},{Pattern:bt,Color:7},{Pattern:tts,Color:0},{Pattern:tts,Color:7},{Pattern:bts,Color:0},{Pattern:bts,Color:7}]}}"
            }
          ]
        },
        {
          "name": "minecraft:iron_hoe",
          "type": "minecraft:item",
          "weight": 100,
          "functions": [
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.1,
                "max": 0.75
              }
            },
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 5.0,
                "max": 25.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        }
      ]
    }
  ]
}
