{
  "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:crossbow",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "crossbow",
                  "attribute": "minecraft:movement_speed",
                  "amount": {
                    "min": 0.05,
                    "max": 0.05
                  },
                  "operation": "add_multiplied_total",
                  "slot": [
                    "mainhand"
                  ]
                },
                {
                  "id": "crossbow2",
                  "attribute": "minecraft:movement_speed",
                  "amount": {
                    "min": 0.05,
                    "max": 0.05
                  },
                  "operation": "add_multiplied_total",
                  "slot": "offhand"
                }
              ]
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:piercing": {
                  "min": 5,
                  "max": 10
                },
                "minecraft:quick_charge": 5,
                "minecraft:unbreaking": {
                  "min": 1,
                  "max": 10
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:multishot": {
                  "min": 0,
                  "max": 1
                }
              }
            }
          ],
          "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:loot_table",
          "value": "mt:custom_items/grenade",
          "weight": 1,
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:chests/badlands/badlands_helmet",
          "weight": 1,
          "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:splash_potion",
          "weight": 1,
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:max_stack_size": 5,
                "minecraft:custom_data": {
                  "weapon": "mt.bomb"
                },
                "minecraft:potion_contents": {
                  "potion": "minecraft:strong_harming",
                  "custom_color": 4141361,
                  "custom_effects": [
                    {
                      "id": "minecraft:instant_damage",
                      "amplifier": 4,
                      "duration": 4
                    }
                  ]
                }
              }
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "Does a ton of damage and blinds ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "the opponents on a direct hit. ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:firework_rocket",
          "weight": 1,
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "weapon": "desolation"
                },
                "minecraft:fireworks": {
                  "flight_duration": 3,
                  "explosions": [
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    },
                    {
                      "shape": "small_ball"
                    }
                  ]
                }
              }
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Desolation Rocket",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "A deadly firework rocket capable ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "of killing an Iron Golem in 2 hits. ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:orange_shulker_box",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_contents",
              "component": "minecraft:container",
              "entries": [
                {
                  "type": "minecraft:loot_table",
                  "value": "mt:chests/badlands/epic"
                }
              ]
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:enchanted_golden_apple",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:golden_apple",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond_block",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:gold_block",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 20,
                "max": 30
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:netherite_scrap",
          "weight": 2,
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:shulker_shell",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              },
              "add": false
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:netherite_hoe",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Forged Netherite Hoe",
                  "color": "aqua",
                  "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": " 4 Attack Speed",
                  "color": "dark_green",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:unbreaking": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:efficiency": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:silk_touch": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                }
              }
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:attribute_modifiers": [
                  {
                      "id": "mine_treasure",
                      "type": "attack_damage",
                      "amount": 9,
                      "operation": "add_value"
                  }
                ],
                "tooltip_display": {
                  "hidden_components": [
                    "attribute_modifiers"
                  ]
                }
              }
            }
          ]
        }
      ]
    }
  ]
}
