{
  "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:loot_table",
          "value": "mt:custom_items/experient_trousers",
          "conditions": [
            {
              "condition": "minecraft:random_chance",
              "chance": 0.2
            },
            {
              "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:end_stone",
          "weight": 2,
          "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",
          "name": "minecraft:golden_apple",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 8
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 2,
          "value": "mt:custom_items/juicy_experience_drink",
          "conditions": [
            {
              "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",
          "weight": 1,
          "name": "minecraft:shears",
          "functions": [
            {
              "function": "minecraft:set_enchantments",
              "enchantments": {
                "minecraft:unbreaking": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:efficiency": {
                  "min": 0,
                  "max": 10
                },
                "minecraft:mending": {
                  "min": 0,
                  "max": 1
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:experience_bottle",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:limit_count",
              "limit": {
                "min": 6,
                "max": 12
              }
            }
          ]
        },
        {
          "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": 16736756,
                  "custom_effects": [
                    {
                      "id": "minecraft:unluck",
                      "amplifier": 193,
                      "duration": 4800,
                      "show_particles": false,
                      "show_icon": false,
                      "ambient": false
                    }
                  ]
                }
              }
            },
            {
              "function": "set_name",
              "name": [
                {
                  "color": "white",
                  "text": "Shrink Potion",
                  "italic": false
                }
              ]
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "color": "blue",
                  "text": "Shrink (04:00)",
                  "italic": false
                },
                {
                  "color": "gray",
                  "text": "Works on players only ",
                  "italic": false
                }
              ],
              "mode": "append"
            }
          ],
          "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",
          "weight": 2,
          "name": "minecraft:chorus_fruit",
          "functions": [
            {
              "function": "minecraft:limit_count",
              "limit": {
                "min": {
                  "min": 4,
                  "max": 8
                }
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "max": 599999
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "minecraft:tipped_arrow",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:limit_count",
              "limit": {
                "min": 2,
                "max": 4
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": {
                  "text": "Lush Arrow",
                  "color": "#2DD90B",
                  "italic": false
                },
                "minecraft:potion_contents": {
                  "custom_color": 1441549,
                  "custom_effects": [
                    {
                      "id": "minecraft:weakness",
                      "amplifier": 1,
                      "duration": 140,
                      "show_particles": false
                    },
                    {
                      "id": "minecraft:poison",
                      "amplifier": 2,
                      "duration": 140,
                      "show_particles": false
                    }
                  ]
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 3,
          "value": "mt:custom_items/glowy_arrow",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:limit_count",
              "limit": {
                "min": 8,
                "max": 16
              }
            }
          ]
        },
        {
          "type": "item",
          "weight": 2,
          "name": "minecraft:glow_item_frame",
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "$vanilla_mode"
                },
                "score": "mt.var"
              },
              "range": 0
            }
          ],
          "functions": [
            {
              "function": "minecraft:limit_count",
              "limit": {
                "min": 5,
                "max": 10
              }
            },
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_name": {
                  "text": "Invisible Glow Item Frame",
                  "color": "aqua",
                  "italic": false
                },                
                "minecraft:entity_data": {
                  "id": "minecraft:item_frame",
                  "Invisible": true,
                  "Fixed": false
                }
              }
            },
            {
              "function": "set_lore",
              "lore": [
                {
                  "text": "An invisible item frame ",
                  "color": "gray",
                  "italic": false
                },
                {
                  "text": "which makes the item glow. ",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "replace_all"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "quality": 1,
          "name": "minecraft:enchanted_book",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:stored_enchantments": {
                  "minecraft:mending": 1,
                  "minecraft:unbreaking": 3
                }
              }
            },
            {
              "function": "minecraft:set_count",
              "count": 1
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:entity_scores",
              "entity": "this",
              "scores": {
                "mt.total": {
                  "min": 550000
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:chorus_plant",
          "weight": 2,
          "quality": 1,
          "functions": [
            {
              "function": "minecraft:limit_count",
              "limit": {
                "min": 1,
                "max": 2
              }
            }
          ]
        }
      ]
    }
  ]
}
