{
  "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",
          "name": "minecraft:blue_orchid",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 1,
          "value": "mt:custom_items/healing_flower",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.25
            },
            {
              "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:allium",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:cherry_sapling",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 1,
                "max": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:azure_bluet",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:oxeye_daisy",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:cornflower",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:lily_of_the_valley",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:sunflower",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:lilac",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:rose_bush",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:peony",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 2,
          "value": "mt:custom_items/flower_pie",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "set_count",
              "count": 2
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "quality": 1,
          "name": "minecraft:enchanted_book",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:stored_enchantments": {
                  "minecraft:mending": 1
                }
              }
            },
            {
              "function": "minecraft:set_count",
              "count": 1
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 600000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:hanging_roots",
          "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:coarse_dirt",
          "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:stone_hoe",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:sharpness": {
                  "min": 0,
                  "max": 3
                },
                "minecraft:silk_touch": {
                  "min": 0,
                  "max": 1
                },
                "minecraft:unbreaking": {
                  "min": 0,
                  "max": 5
                },
                "minecraft:efficiency": {
                  "type": "minecraft:uniform",
                  "min": 0,
                  "max": 4
                }
              }
            },
            {
              "function": "minecraft:set_attributes",
              "modifiers": [
                {
                  "id": "mine_treasure",
                  "attribute": "minecraft:attack_damage",
                  "amount": {
                    "min": 3,
                    "max": 3
                  },
                  "operation": "add_value",
                  "slot": "mainhand"
                }
              ]
            },
            {
              "function": "minecraft:toggle_tooltips",
              "toggles": {
                "minecraft:attribute_modifiers": false
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "text": "Stone Hoe",
                  "color": "aqua",
                  "italic": false
                }
              ]
            },
            {
              "function": "minecraft:set_lore",
              "lore": [
                {
                  "text": "  "
                },
                {
                  "text": "When in Main Hand:",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": " 4 Attack Damage",
                  "color": "dark_green",
                  "italic": false
                },
                {
                  "text": " 4 Attack Speed",
                  "color": "dark_green",
                  "italic": false
                }
              ],
               "mode": "replace_all"
            }
          ],
          "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
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:chorus_fruit",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 2,
                "max": 4
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:experience_bottle",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 3,
                "max": 7
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:enchant_with_levels",
              "options": "#in_enchanting_table",
              "levels": 30
            }
          ]
        }
      ]
    }
  ]
}
