{
  "pools": [
    {
      "rolls": {
        "type": "minecraft:binomial",
        "n": {
          "type": "minecraft:storage",
          "storage": "mt:settings",
          "path": "loot_table_rolls.initial"
        },
        "p": {
          "type": "minecraft:score",
          "target": "this",
          "score": "mt.total",
          "scale": 0.0000035
        }
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:netherite_pickaxe",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:efficiency": 10,
                "mt:technical/giga_bore": 1
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:repair_cost": 99999,
                "minecraft:unbreakable": {},
                "minecraft:custom_name": {
                  "text": "Giga Bore",
                  "color": "gold",
                  "italic": false
                },
                "minecraft:lore": [
                  {
                    "text": " "
                  },
                  {
                    "text": "Ability:",
                    "color": "green",
                    "italic": false
                  },
                  {
                    "text": "Insta mines in 3x3, sneak to stop ",
                    "color": "gray",
                    "italic": false
                  },
                  {
                    "text": "NOTE: 3x3 DOES NOT SPAWN TREASURES! ",
                    "color": "gray",
                    "italic": false
                  }
                ],                
                "minecraft:custom_data": {
                  "tool": "mt.giga_bore"
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:charms/epic",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:charms/rare",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:charms/common",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 2,
          "value": "mt:custom_items/juicy_experience_drink",
          "functions": [
            {
              "function": "set_count",
              "count": 2
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:charms/legendary",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:lime_dye",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Progression Increase",
                  "color": "gold",
                  "italic": false
                }
              ],
              "target": "item_name"
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "color": "gray",
                  "text": "Right click to increase ",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "total blocks mined by ",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "25 thousand blocks. ",
                  "italic": false
                }
              ],
              "mode": "append"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "use_cooldown": {
                  "seconds": 0.5,
                  "cooldown_group": "mt:progresson_increase"
                },
                "minecraft:enchantment_glint_override": true,
                "minecraft:consumable": {
                  "consume_seconds": 0,
                  "sound": "intentionally_empty",
                  "has_consume_particles": false,
                  "on_consume_effects": [
                    {
                      "type": "minecraft:play_sound",
                      "sound": "entity.player.levelup"
                    }
                  ]
                },
                "minecraft:custom_data": {
                  "mt": "progression_increase"
                },
                "minecraft:max_stack_size": 16
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:golden_pickaxe",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 1
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Legendary Spawn",
                  "color": "gold",
                  "italic": false
                }
              ],
              "target": "item_name"
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "color": "gray",
                  "text": "Mine a stone-related block to ",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "spawn a legendary treasure ",
                  "italic": false
                }
              ],
              "mode": "append"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "max_damage": 1,
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_data": {
                  "mt.legendary_spawn": 1
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond_pickaxe",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 1
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Epic Spawn",
                  "color": "gold",
                  "italic": false
                }
              ],
              "target": "item_name"
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "color": "gray",
                  "text": "Mine a stone-related block to ",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "spawn an epic treasure ",
                  "italic": false
                }
              ],
              "mode": "append"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:item_model": "diamond_pickaxe",
                "max_damage": 1,
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_data": {
                  "mt.epic_spawn": 1
                }
              }
            }
          ]
        }
      ]
    }
  ]
}