{
  "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/rare",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.02
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:piston",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:golden_apple",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:diamond",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:emerald",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:dispenser",
          "functions": [
            {
              "function": "minecraft:set_contents",
              "component": "minecraft:container",
              "entries": [
                {
                  "type": "minecraft:loot_table",
                  "value": "mt:chests/jungle/arrows"
                }
              ]
            },
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "text": "A dispenser full of arrows. ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 520000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:custom_items/leaf_blower",
          "weight": 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:item",
          "weight": 3,
          "name": "minecraft:experience_bottle",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:creeper_head",
          "functions": [
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "creeper_helmet",
                  "attribute": "minecraft:armor",
                  "amount": {
                    "min": 2,
                    "max": 2
                  },
                  "operation": "add_value",
                  "slot": "head"
                },
                {
                  "id": "creeper_helmet",
                  "attribute": "minecraft:armor_toughness",
                  "amount": {
                    "min": 1,
                    "max": 1
                  },
                  "operation": "add_value",
                  "slot": "head"
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Creeper Helmet",
                  "color": "aqua",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "minecraft:custom_data": {
                    "armor": "creep"
                  }
                }
              }
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:blast_protection": {
                  "min": 1,
                  "max": 10
                },
                "minecraft:fire_protection": {
                  "min": 0,
                  "max": 3
                },
                "minecraft:projectile_protection": {
                  "min": 0,
                  "max": 3
                },
                "minecraft:protection": {
                  "min": 0,
                  "max": 3
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.25
            },
            {
              "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:skeleton_skull",
          "functions": [
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "skeleton_helmet",
                  "attribute": "minecraft:armor",
                  "amount": {
                    "min": 2,
                    "max": 2
                  },
                  "operation": "add_value",
                  "slot": "head"
                },
                {
                  "id": "skeleton_helmet",
                  "attribute": "minecraft:armor_toughness",
                  "amount": {
                    "min": 1,
                    "max": 1
                  },
                  "operation": "add_value",
                  "slot": "head"
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Skeleton Helmet",
                  "color": "aqua",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "minecraft:custom_data": {
                    "armor": "skel"
                  }
                }
              }
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:blast_protection": {
                  "min": 0,
                  "max": 3
                },
                "minecraft:fire_protection": {
                  "min": 0,
                  "max": 3
                },
                "minecraft:projectile_protection": {
                  "min": 1,
                  "max": 10
                },
                "minecraft:protection": {
                  "min": 0,
                  "max": 3
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.25
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 2,
          "name": "minecraft:saddle",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "value": "mt:hacks/panda",
          "weight": 1,
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.2
            },
            {
              "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",
          "weight": 2,
          "name": "minecraft:tipped_arrow",
          "functions": [
            {
              "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"
            }
          ],
          "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
            }
          ]
        }
      ]
    }
  ]
}
