{
  "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/legendary",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.1
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "minecraft:enchanted_golden_apple",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 3
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 2,
          "name": "minecraft:light_gray_shulker_box",
          "functions": [
            {
              "function": "minecraft:set_loot_table",
              "type": "minecraft:shulker_box",
              "name": "mt:chests/mushroom/rare_loot"
            },
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 1,
          "value": "mt:chests/mushroom/mushroom_boots",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            },
            {
              "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": 1,
          "value": "mt:chests/mushroom/mushroom_shield",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            },
            {
              "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": "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": 16722450,
                  "custom_effects": [
                    {
                      "id": "minecraft:unluck",
                      "amplifier": 194,
                      "duration": 9600,
                      "show_particles": false,
                      "show_icon": false,
                      "ambient": false
                    }
                  ]
                }
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "color": "white",
                  "text": "Enlarge Potion",
                  "italic": false
                }
              ]
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "color": "blue",
                  "text": "Enlarge (08:00)",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "Works on players only ",
                  "italic": false
                }
              ],
              "mode": "append"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.4
            },
            {
              "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:music_disc_11",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "!minecraft:jukebox_playable": {},
                "minecraft:item_model": "command_block",
                "minecraft:custom_data": {
                  "spawn": "mt.dolphins_grace_cow"
                },
                "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": "Dolphin's Grace Cow Hack",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "Calls the Dolphin's Grace cow which one can ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "milk with bowls for stew of Dolphin's Grace ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 550000
                }
              }
            },
            {
              "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:music_disc_11",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "!minecraft:jukebox_playable": {},
                "minecraft:item_model": "command_block",
                "minecraft:custom_data": {
                  "spawn": "mt.lucky_cow"
                },
                "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": "Lucky Cow Hack",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "Calls the Lucky cow which one can ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "milk with bowls for stew of Luck ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "Luck gives better treasure loot. ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 510000
                }
              }
            },
            {
              "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:golden_apple",
          "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:redstone_block",
          "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",
          "weight": 3,
          "name": "minecraft:iron_block",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:warped_fungus_on_a_stick",
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:unbreaking": {
                  "min": 1,
                  "max": 10
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:fermented_spider_eye",
          "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",
          "weight": 3,
          "name": "minecraft:red_mushroom_block",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 24,
                "max": 48
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:suspicious_stew",
          "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_stew_effect",
              "effects": [
                {
                  "type": "minecraft:health_boost",
                  "duration": {
                    "min": 1200,
                    "max": 2400
                  }
                }
              ]
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Health Boost Stew",
                  "color": "gold",
                  "italic": false
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:music_disc_11",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "!minecraft:jukebox_playable": {},
                "minecraft:item_model": "command_block",
                "minecraft:custom_data": {
                  "spawn": "mt.saturation_cow"
                },
                "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": "Saturation Cow Hack",
                  "color": "gold",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "Calls the Saturation cow ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "which one can milk with bowls ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "for stew of Saturation. ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 550000
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        }
      ]
    }
  ]
}
