// Copyright (c) JaylyMC.
// Licensed under the GPL-3.0 License.

{
  "pools": [
    {
      "conditions": [
        {
          "condition": "random_regional_difficulty_chance",
          "max_chance": 0.05
        }
      ],
      "rolls": 1,
      "entries": [
        {
          "type": "item",
          "name": "minecraft:iron_sword",
          "weight": 1,
          "functions": [
            {
              "function": "looting_enchant",
              "count": {
                "min": 0,
                "max": 1
              }
            },
            {
              "function": "enchant_random_gear",
              "chance": 0.2
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:trident",
          "weight": 1
        },
        {
          "type": "item",
          "name": "minecraft:golden_sword",
          "weight": 1,
          "functions": [
            {
              "function": "looting_enchant",
              "count": {
                "min": 0,
                "max": 1
              }
            },
            {
              "function": "enchant_random_gear",
              "chance": 0.2
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:bow",
          "weight": 1,
          "functions": [
            {
              "function": "looting_enchant",
              "count": {
                "min": 0,
                "max": 1
              }
            },
            {
              "function": "enchant_random_gear",
              "chance": 0.2
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:iron_shovel",
          "weight": 3,
          "functions": [
            {
              "function": "looting_enchant",
              "count": {
                "min": 0,
                "max": 1
              }
            },
            {
              "function": "enchant_random_gear",
              "chance": 0.2
            }
          ]
        }
      ]
    },
    {
      "conditions": [
        {
          "condition": "random_difficulty_chance",
          "default_chance": 1.0,
          "peaceful": 0,
          "easy": 0
        },
        {
          "condition": "random_regional_difficulty_chance",
          "max_chance": 0.15
        }
      ],
      "tiers": {
        "initial_range": 2,
        "bonus_rolls": 3,
        "bonus_chance": 0.095
      },

      "entries": [
        {
          "type": "loot_table",
          "name": "loot_tables/entities/armor_set_leather.json"
        },
        {
          "type": "loot_table",
          "name": "loot_tables/entities/armor_set_gold.json"
        },
        {
          "type": "loot_table",
          "name": "loot_tables/entities/armor_set_chain.json"
        },
        {
          "type": "loot_table",
          "name": "loot_tables/entities/armor_set_iron.json"
        },
        {
          "type": "loot_table",
          "name": "loot_tables/entities/armor_set_diamond.json"
        }
      ]
    }
  ]
}
