{
  "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",
          "weight": 2,
          "name": "minecraft:golden_apple",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:enchanted_golden_apple",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 2,
          "name": "minecraft:diamond_block",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 699999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:emerald_block",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 699999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:sculk_sensor",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:turtle_egg",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:player_head",
          "functions": [
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "panda",
                  "attribute": "minecraft:armor",
                  "amount": {
                    "min": 4,
                    "max": 6
                  },
                  "operation": "add_value",
                  "slot": "head"
                },
                {
                  "id": "panda",
                  "attribute": "minecraft:armor_toughness",
                  "amount": {
                    "min": 4,
                    "max": 4
                  },
                  "operation": "add_value",
                  "slot": "head"
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:profile": {
                  "id": [
                    1648193673,
                    1096304930,
                    -1387458717,
                    923627530
                  ],
                  "properties": [
                    {
                      "name": "textures",
                      "value": "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmE2ZTNhZDgyM2Y5NmQ0YTgwYTE0NTU2ZDhjOWM3NjMyMTYzYmJkMmE4NzZjMDExOGI0NTg5MjVkODdhNTUxMyJ9fX0="
                    }
                    ]
                  },
                  "minecraft:custom_data": {
                    "armor": "mt.panda"
                  }
                }
              },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Panda Helmet",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:blast_protection": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:fire_protection": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:projectile_protection": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:protection": {
                  "min": 0,
                  "max": 5
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.25
            },
            {
              "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:loot_table",
          "weight": 2,
          "value": "mt:runes/roaring_jungle",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#disable_rune"
                },
                "score": "mt.constant"
              },
              "range": 0
            },
            {
              "condition": "minecraft:random_chance",
              "chance": 0.75
            },
            {
              "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",
          "weight": 1,
          "name": "minecraft:wither_skeleton_skull",
          "functions": [
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "wither_helmet",
                  "attribute": "minecraft:armor",
                  "amount": {
                    "min": 3.5,
                    "max": 3.5
                  },
                  "operation": "add_value",
                  "slot": "head"
                },
                {
                  "id": "wither_helmet",
                  "attribute": "minecraft:armor_toughness",
                  "amount": {
                    "min": 3.5,
                    "max": 3.5
                  },
                  "operation": "add_value",
                  "slot": "head"
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Wither Helmet",
                  "color": "light_purple",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "armor": "wither"
                }
              }
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:blast_protection": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:fire_protection": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:projectile_protection": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:protection": {
                  "min": 0,
                  "max": 5
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.75
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:tipped_arrow",
          "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": 2,
                "max": 4
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": {
                  "text": "Poison Arrow",
                  "color": "#46F057",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 4915005,
                  "custom_effects": [
                    {
                      "id": "minecraft:poison",
                      "amplifier": 3,
                      "duration": 140,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:slowness",
                      "amplifier": 3,
                      "duration": 140,
                      "show_particles": true
                    },
                    {
                      "id": "minecraft:blindness",
                      "amplifier": 3,
                      "duration": 140,
                      "show_particles": true
                    }
                  ]
                }
              }
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "text": "A deadly arrow, applies Poison II, ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "Blindness and Slowness IV for 7 seconds. ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ]
        }
      ]
    }
  ]
}
