{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 0.0,
        "max": 1.0,
        "type": "minecraft:uniform"
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:crossbow"
        }
      ]
    },
    {
      "rolls": {
        "min": 1.0,
        "max": 1.0,
        "type": "minecraft:uniform"
      },
      "bonus_rolls": 0.0,
      "entries": [
	{
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:exploration_map",
              "destination": "mansion",
              "decoration": "mansion",
              "zoom": 4,
              "skip_existing_chunks": false
            }
          ],
          "name": "minecraft:map"
        }
      ]
    },
    {
      "rolls": {
        "min": 3.0,
        "max": 4.0,
        "type": "minecraft:uniform"
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 7,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:wheat"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:potato"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3.0,
                "max": 5.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:carrot"
        }
      ]
    },
    {
      "rolls": {
        "min": 1.0,
        "max": 3.0,
        "type": "minecraft:uniform"
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:dark_oak_log"
        }
      ]
    },
    {
      "rolls": {
        "min": 2.0,
        "max": 2.0,
        "type": "minecraft:uniform"
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:saddle"
        },
        {
          "type": "minecraft:item",
          "weight": 10,
          "name": "minecraft:golden_apple"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 10,
              "treasure": true
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.1,
                "max": 0.3,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:chainmail_chestplate"
        },
        {
          "type": "minecraft:item",
          "weight": 15,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 14,
              "treasure": true
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.1,
                "max": 0.3,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:crossbow"
        },
        {
          "type": "minecraft:item",
          "weight": 10,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 15,
              "treasure": true
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.3,
                "max": 0.7,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:iron_axe"
        },
        {
          "type": "minecraft:item",
          "name": "iron_axe",
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 15,
              "treasure": true
            },
            {
              "function": "minecraft:set_damage",
              "damage": {
                "min": 0.3,
                "max": 0.7,
                "type": "minecraft:uniform"
              }
            },
	    {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "attribute": "generic.attack_speed",
                  "name": "Attack Speed",
                  "amount": -2.0,
                  "operation": "addition",
                  "slot": "mainhand"
                },
                {
                  "attribute": "generic.attack_damage",
                  "name": "Attack Damage",
                  "amount": 5.0,
                  "operation": "addition",
                  "slot": "mainhand"
                }
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{HideFlags:2, CustomModelData:101,repairCost:99}"
            },
            {
              "function": "minecraft:set_name",
              "name": "§r§eIron Battle Axe",
              "entity": "this"
            },
            {
              "function": "minecraft:set_lore",
              "lore": [

                "",
                "§7When in main hand:",
                "§2 6 Attack Damage",
                "§2 2 Attack Speed"
              ],
              "entity": "this"
            }
          ],
          "weight": 3
        },
        {
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "levels": 20,
              "treasure": true
            }
          ],
          "name": "minecraft:book"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ],
          "name": "minecraft:book"
        }
      ]
    },
    {
      "rolls": {
        "min": 2.0,
        "max": 3.0,
        "type": "minecraft:uniform"
      },
      "bonus_rolls": 0.0,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 7,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 9.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:experience_bottle"
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "name": "minecraft:string"
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2.0,
                "max": 7.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:arrow"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:tripwire_hook"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1.0,
                "max": 3.0,
                "type": "minecraft:uniform"
              }
            }
          ],
          "name": "minecraft:iron_ingot"
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ],
          "name": "minecraft:book"
        }
      ]
    }
  ]
}