{
  "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/epic",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.035
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:glowstone",
          "weight": 2,
          "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:blaze_rod",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 550000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:redstone_block",
          "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:gunpowder",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 8,
                "max": 16
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:splash_potion",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "max_stack_size": 5,
                "minecraft:custom_name": {
                  "text": "Ultra Splash Slowness",
                  "color": "light_purple",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 4146759,
                  "custom_effects": [
                    {
                      "id": "minecraft:slowness",
                      "amplifier": 3,
                      "duration": 4000,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:mining_fatigue",
                      "amplifier": 1,
                      "duration": 4000,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:weakness",
                      "amplifier": 0,
                      "duration": 4000,
                      "show_particles": true
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:nether_wart",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:potion",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "item": "uheal"
                },
                "max_stack_size": 5,
                "minecraft:custom_name": {
                  "text": "Ultra Instant Heal",
                  "color": "light_purple",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 16712451,
                  "custom_effects": [
                    {
                      "id": "minecraft:instant_health",
                      "amplifier": 2,
                      "duration": 10,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:regeneration",
                      "amplifier": 1,
                      "duration": 400,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:absorption",
                      "amplifier": 1,
                      "duration": 400,
                      "show_particles": true
                    }
                  ]
                }
              }
            }
          ],
          "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": "item",
          "weight": 1,
          "name": "minecraft:splash_potion",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "max_stack_size": 5,
                "minecraft:custom_name": {
                  "text": "Ultra Splash Damage",
                  "color": "light_purple",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 4205091,
                  "custom_effects": [
                    {
                      "id": "minecraft:instant_damage",
                      "amplifier": 4,
                      "duration": 10,
                      "show_particles": true
                    }
                  ]
                }
              }
            }
          ],
          "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": "item",
          "weight": 1,
          "name": "minecraft:splash_potion",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "max_stack_size": 5,
                "minecraft:custom_name": {
                  "text": "Ultra Poison",
                  "color": "light_purple",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 2072091,
                  "custom_effects": [
                    {
                      "id": "minecraft:instant_damage",
                      "amplifier": 0,
                      "duration": 10,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:hunger",
                      "amplifier": 3,
                      "duration": 600,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:poison",
                      "amplifier": 2,
                      "duration": 600,
                      "show_particles": true
                    }
                  ]
                }
              }
            }
          ]
        }
      ]
    }
  ]
}
