{
  "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:golden_carrot",
          "weight": 3,
          "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:golden_apple",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:globe_banner_pattern",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Ally Boost",
                  "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": "When activated grants all ridable ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "entities Strength III, Regeneration IV ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "and Resistance II for 20 seconds in ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "a 10 block radius! ",
                  "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.ally",
                    "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: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:enchanted_golden_apple",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:carrot_on_a_stick",
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:unbreaking": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:lead",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:hay_block",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 12,
                "max": 24
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:music_disc_11",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "!minecraft:jukebox_playable": {},
                "minecraft:item_model": "command_block",
                "minecraft:custom_data": {
                  "spawn": "mt.dirty"
                },
                "minecraft:enchantment_glint_override": true,
                "minecraft:consumable": {
                  "consume_seconds": 0,
                  "sound": "intentionally_empty",
                  "has_consume_particles": false
                },
                "minecraft:use_cooldown": {
                  "seconds": 5,
                  "cooldown_group": "mt:hack"
                },
                "damage_resistant": {"types": "#minecraft:is_fire"},
                "minecraft:rarity": "rare",
                "!max_damage": {},
                "!damage": {},
                "!minecraft:tool": {},
                "minecraft:max_stack_size": 16
              }
            },
            {
              "function": "minecraft:toggle_tooltips",
              "toggles": {
                "minecraft:attribute_modifiers": false
              }
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Dirty Roller Hack",
                  "color": "light_purple",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "Calls upon a really fast pig. ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            },
            {
              "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:gold_block",
          "weight": 2,
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_block",
          "weight": 3,
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.75
            }
          ]
        }
      ]
    }
  ]
}
