{
  "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.000001
        }
      },
      "bonus_rolls": {
        "min": 1,
        "max": 6
      },
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "mt:charms/legendary",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.1
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:gold_block",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 1,
          "value": "mt:runes/mysterichant",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#disable_rune"
                },
                "score": "mt.constant"
              },
              "range": 0
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            },
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 700000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:enchanted_golden_apple",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:ender_chest",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 1,
          "value": "mt:chests/taiga/taiga_pants",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            },
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 700000
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond_block",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 699999
                }
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:witch_spawn_egg",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": {
                  "text": "Witch Egg",
                  "color": "gold",
                  "italic": false
                },
                "minecraft:lore": [
                  {
                    "text": "Hint: use this on a spawner.",
                    "color": "gray",
                    "italic": false
                  }
                ]
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 600000
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:bookshelf",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 8,
                "max": 16
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:enchanting_table",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:netherite_scrap",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:totem_of_undying",
          "functions": [
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "When activated launches a deadly",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "explosive attack close to the user. ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Totem of Death",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_data": {
                  "weapon": "totemdeath",
                  "mt": "weapon"
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 600000
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:magenta_shulker_box",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_contents",
              "component": "minecraft:container",
              "entries": [
                {
                  "type": "minecraft:loot_table",
                  "value": "mt:chests/taiga/epic"}
              ]
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:spyglass",
          "functions": [
            {
              "function": "minecraft:toggle_tooltips",
              "toggles": {
                "minecraft:attribute_modifiers": false
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Laser Scope",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_data": {
                  "weapon": "mt.laser_scope",
                  "mt": "weapon"
                }
              }
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "Charges a laser dealing insane ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "damage to an entity in its scope. ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": " ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "Costs 5 levels per use. ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "Range of 300 blocks. ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 800000
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:netherite_shovel",
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:efficiency": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:unbreaking": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:silk_touch": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:fortune": {
                  "min": 0,
                  "max": 5
                }
              }
            },
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "mine_treasure",
                  "attribute": "minecraft:attack_damage",
                  "amount": 9,
                  "operation": "add_value",
                  "slot": "mainhand"
                },
                {
                  "id": "mine_treasure_rm",
                  "attribute": "minecraft:attack_speed",
                  "amount": -2.5,
                  "operation": "add_value",
                  "slot": "mainhand"
                }
              ]
            },
            {
              "function": "minecraft:toggle_tooltips",
              "toggles": {
                "minecraft:attribute_modifiers": false
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Forged Netherite Shovel",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "When in Main Hand:",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": " 10 Attack Damage",
                  "color": "dark_green",
                  "italic": false
                },
                {
                  "text": " 1.5 Attack Speed",
                  "color": "dark_green",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 510000
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        }
      ]
    }
  ]
}
