{
  "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:mooshroom_spawn_egg",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": {
                  "text": "Mooshroom Spawn Egg",
                  "color": "gold",
                  "italic": false
                },
                "minecraft:lore": [
                  {
                    "text": "Hint: use this on a spawner.",
                    "color": "gray",
                    "italic": false
                  }
                ]                
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 700000
                }
              }
            },
            {
              "condition": "minecraft:random_chance",
              "chance": 0.01
            },
            {
              "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:bone_block",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:fermented_spider_eye",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:suspicious_stew",
          "weight": 2,
          "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:haste",
                  "duration": {
                    "min": 50,
                    "max": 100
                  }
                }
              ]
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Haste Stew",
                  "color": "aqua",
                  "italic": false
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:suspicious_stew",
          "weight": 2,
          "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:resistance",
                  "duration": {
                    "min": 50,
                    "max": 100
                  }
                }
              ]
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Resistance Stew",
                  "color": "aqua",
                  "italic": false
                }
              ]
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:mushroom_stew",
          "functions": [
            {
              "function": "set_count",
              "count": 2
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:food": {
                  "nutrition": 6,
                  "saturation": 2,
                  "can_always_eat": true
                },
                "minecraft:consumable": {
                  "consume_seconds": 3,
                  "sound": "entity.generic.eat",
                  "has_consume_particles": false,
                  "on_consume_effects": [
                    {
                      "type": "minecraft:apply_effects",
                      "effects": [
                        {
                          "id": "minecraft:strength",
                          "amplifier": 1,
                          "duration": 600
                        },
                        {
                          "id": "minecraft:regeneration",
                          "amplifier": 3,
                          "duration": 200
                        }
                      ],
                      "probability": 1
                    }
                  ]
                },
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_name": {
                  "text": "Super Stew",
                  "color": "light_purple",
                  "italic": false
                },                
                "minecraft:custom_data": {
                  "food": "mt.super_stew"
                }
              }
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "text": "Gives Regeneration IV 10s ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "and Strength II for 30s ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.1
            },
            {
              "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:crimson_fungus",
          "weight": 3,
          "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:warped_fungus",
          "weight": 3,
          "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:experience_bottle",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 7
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_axe",
          "functions": [
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "mine_treasure",
                  "attribute": "minecraft:attack_damage",
                  "amount": {
                    "min": 7,
                    "max": 7
                  },
                  "operation": "add_value",
                  "slot": "mainhand"
                },
                {
                  "id": "mine_treasure_rm",
                  "attribute": "minecraft:attack_speed",
                  "amount": -3.2,
                  "operation": "add_value",
                  "slot": "mainhand"
                }
              ]
            },
            {
              "function": "minecraft:toggle_tooltips",
              "toggles": {
                "minecraft:attribute_modifiers": false
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Forged Iron Axe",
                  "color": "aqua",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "When in Main Hand:",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": " 8 Attack Damage",
                  "color": "dark_green",
                  "italic": false
                },
                {
                  "text": " 0.8 Attack Speed",
                  "color": "dark_green",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            },
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:sharpness": {
                  "min": 1,
                  "max": 5
                },
                "minecraft:unbreaking": {
                  "min": 1,
                  "max": 5
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:efficiency": {
                  "min": 1,
                  "max": 5
                },
                "minecraft:silk_touch": {
                  "min": 0,
                  "max": 1
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            },
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ]
        }
      ]
    }
  ]
}
