{
  "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/common",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.02
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:brown_mushroom_block",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:mycelium",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:red_mushroom_block",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:mushroom_stem",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 6,
                "max": 6
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:suspicious_stew",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_stew_effect",
              "effects": [
                {
                  "type": "minecraft:regeneration",
                  "duration": {
                    "min": 20,
                    "max": 40
                  }
                }
              ]
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Regeneration Stew",
                  "color": "white",
                  "italic": false
                }
              ]
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:red_mushroom",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:brown_mushroom",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 1,
          "name": "minecraft:lingering_potion",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:potion_contents": {
                  "custom_color": 14072020,
                  "custom_effects": [
                    {
                      "id": "minecraft:slowness",
                      "amplifier": 1,
                      "duration": 111
                    },
                    {
                      "id": "minecraft:mining_fatigue",
                      "amplifier": 1,
                      "duration": 111
                    },
                    {
                      "id": "minecraft:hunger",
                      "amplifier": 1,
                      "duration": 111
                    },
                    {
                      "id": "minecraft:weakness",
                      "amplifier": 1,
                      "duration": 111
                    },
                    {
                      "id": "minecraft:nausea",
                      "amplifier": 1,
                      "duration": 111
                    },
                    {
                      "id": "minecraft:blindness",
                      "amplifier": 1,
                      "duration": 111
                    }
                  ]
                }
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Mushroom Cloud",
                  "color": "light_purple",
                  "italic": false
                }
              ]
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.05
            },
            {
              "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",
          "name": "minecraft:experience_bottle",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 7
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:milk_bucket",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 1
            },
            {
              "function": "minecraft:set_name",
              "name": [
                {
                  "text": "Shroom Milk",
                  "color": "aqua",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "In the sky we fly high, ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "while avoiding the sneak. ",
                  "color": "gray",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:enchantment_glint_override": true,
                "minecraft:custom_data": {
                  "food": "mt.shroom_milk"
                }
              }
            },
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.01
            },
            {
              "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:suspicious_stew",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_stew_effect",
              "effects": [
                {
                  "type": "minecraft:invisibility",
                  "duration": {
                    "min": 20,
                    "max": 40
                  }
                }
              ]
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Invisibility Stew",
                  "color": "aqua",
                  "italic": false
                }
              ]
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.5
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:bell",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.1
            },
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 550000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:shroomlight",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 6
              }
            }
          ]
        }
      ]
    }
  ]
}
