{
  "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:loot_table",
          "value": "mt:custom_items/kinetic_bomb",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "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": "Upwind Arrow",
                  "color": "#F2F2D0",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 16775410,
                  "custom_effects": [
                    {
                      "id": "minecraft:levitation",
                      "amplifier": 3,
                      "duration": 60,
                      "show_particles": true
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:splash_potion",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "set_components",
              "components": {
                "minecraft:max_stack_size": 5,
                "tooltip_display": {
                  "hidden_components": [
                    "potion_contents"
                  ]
                },
                "minecraft:potion_contents": {
                  "custom_color": 14602442,
                  "custom_effects": [
                    {
                      "id": "minecraft:unluck",
                      "amplifier": 197,
                      "duration": 4800,
                      "show_particles": false,
                      "show_icon": false,
                      "ambient": false
                    }
                  ]
                }
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "color": "white",
                  "text": "Lightness Potion",
                  "italic": false
                }
              ]
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "color": "blue",
                  "text": "Lightness (04:00)",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "Works on players only ",
                  "italic": false
                }
              ],
              "mode": "append"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.33
            },
            {
              "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:globe_banner_pattern",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Knockchant",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "RUNE",
                  "color": "gold",
                  "bold": true,
                  "italic": false
                },
                {
                  "text": " ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "Ability:",
                  "color": "green",
                  "italic": false
                },
                {
                  "text": "Hold an armor a weapon in your off- ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "hand and right click for a random ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "knockback enchantment. Max for",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "Hurricane Sword is X, else V. ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "max_stack_size": 16,
                "minecraft:consumable": {
                  "consume_seconds": 0,
                  "sound": "intentionally_empty",
                  "has_consume_particles": false
                },
                "minecraft:use_cooldown": {
                  "seconds": 5,
                  "cooldown_group": "mt:rune"
                },
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_data": {
                  "rune": "mt.knockchant",
                    "mt": "rune"
                  }
                }
            }
          ],
          "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:random_chance",
              "chance": 0.6
            },
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 800000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:golden_apple",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:enchanted_golden_apple",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:golden_pickaxe",
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:efficiency": {
                  "min": 4,
                  "max": 9
                },
                "minecraft:unbreaking": {
                  "min": 7,
                  "max": 20
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 520000,
                  "max": 599999
                }
              }
            },
            {
              "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:player_head",
          "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_enchantments",
              "enchantments": {
                "minecraft:protection": {
                  "min": 0,
                  "max": 4
                },
                "minecraft:feather_falling": {
                  "min": 2,
                  "max": 7
                }
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": {
                  "text": "Chicken Helmet",
                  "color": "light_purple",
                  "italic": false
                },           
                "minecraft:profile": "MHF_Chicken",
                "minecraft:custom_data": {
                  "armor": "chic"
                }
              }
            },
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "chicken_helmet",
                  "attribute": "minecraft:armor",
                  "amount": 3.5,
                  "operation": "add_value",
                  "slot": "head"
                },
                {
                  "id": "chicken_helmet",
                  "attribute": "minecraft:armor_toughness",
                  "amount": 2,
                  "operation": "add_value",
                  "slot": "head"
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:ender_pearl",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:mace",
          "weight": 1,
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 600000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond",
          "weight": 2,
          "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",
          "name": "minecraft:emerald",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 10,
                "max": 20
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 10,
                "max": 20
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 549999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:bow",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_data": {
                  "weapon": "wbow"
                }
              }
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:power": {
                  "min": 4,
                  "max": 7
                },
                "minecraft:punch": {
                  "min": 2,
                  "max": 5
                },
                "minecraft:unbreaking": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:infinity": 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
            }
          ]
        }
      ]
    }
  ]
}
