{
  "type": "minecraft:chest",
  "random_sequence": "repurposed_structures:chests",
  "pools": [
    {
      "rolls": {
        "min": 2.0,
        "max": 8.0,
        "type": "minecraft:uniform"
      },
      "entries": [
        {
          "name": "mysticalagriculture:coal_essence",
          "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:potato",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:carrot",
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "mysticalagriculture:emerald_essence",
          "weight": 1
        }
      ]
    },
    {
      "rolls": 3,
      "entries": [
        {
          "name": "minecraft:fishing_rod",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:smithing_table",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:stone_hoe",
          "type": "minecraft:item",
          "weight": 5
        },
        {
          "name": "minecraft:pumpkin",
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ]
        },
        {
          "name": "minecraft:bow",
          "type": "minecraft:item",
          "weight": 2
        },
        {
          "name": "minecraft:arrow",
          "type": "minecraft:item",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 6.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": 2,
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "repurposed_structures:explorer_maps/bastion_underground",
              "decoration": "banner_gray",
              "zoom": 2,
              "skip_existing_chunks": false
            },
            {
              "function": "minecraft:set_name",
              "name": {
                "translate": "Bastion Remnant Map"
              }
            }
          ]
        }
      ]
    },
    {
      "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:gra,Color:7},{Pattern:gru,Color:15},{Pattern:gru,Color:15},{Pattern:gru,Color:15},{Pattern:gra,Color:7},{Pattern:pig,Color:15},{Pattern:ss,Color:7},{Pattern:ss,Color:7},{Pattern:ss,Color:15},{Pattern:bo,Color:7},{Pattern:bo,Color:7},{Pattern:bo,Color:7}]}}"
            }
          ]
        },
        {
          "name": "minecraft:iron_hoe",
          "type": "minecraft:item",
          "weight": 7,
          "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"
              }
            }
          ]
        }
      ]
    }
  ]
}