{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": {
        "min": 1,
        "max": 3
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:diamond",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 8,
                "max": 12
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald",
          "weight": 2,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 8,
                "max": 16
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_ingot",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 8,
                "max": 24
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:gold_ingot",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 4,
                "max": 16
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": {
        "min": 0,
        "max": 1
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:potion",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:potion_contents": {
                  "custom_effects": [
                    {
                      "id": "minecraft:strength",
                      "amplifier": 0,
                      "duration": 36000
                    },
                    {
                      "id": "minecraft:health_boost",
                      "amplifier": 0,
                      "duration": 1800
                    },
                    {
                      "id": "minecraft:saturation",
                      "amplifier": 0,
                      "duration": 1800
                    },
                    {
                      "id": "minecraft:bad_omen",
                      "amplifier": 4,
                      "duration": 1800
                    }
                  ]
                }
              }
            }
          ]
        }
      ]
    }
  ]
}
