{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:poisonous_potato",
          "functions": [
            {
              "function": "set_components",
              "components": {
                "item_name": {
                  "translate": "item.overlyrealistic.gold_fragments",
                  "fallback": "Gold Fragments",
                  "color": "white"
                },
                "!food": {},
                "!consumable": {},
                "custom_data": {
                  "or_no_edit": true,
                  "or_edited_item": true,
                  "IsGoldFragments": true
                },
                "item_model": "overlyrealistic:items/gold_fragments",
                "max_stack_size": 50
              }
            },
            {
              "function": "set_count",
              "count": 1,
              "add": true,
              "conditions": [
                {
                  "condition": "value_check",
                  "value": {
                    "type": "score",
                    "score": "OverlyRealistic.General.ArbitraryData",
                    "target": {
                      "type": "fixed",
                      "name": "#or.mortar_user_mining_skill"
                    }
                  },
                  "range": {
                    "min": 1
                  }
                },
                {
                  "condition": "random_chance",
                  "chance": 0.25
                }
              ]
            },
            {
              "function": "set_count",
              "count": 1,
              "add": true,
              "conditions": [
                {
                  "condition": "value_check",
                  "value": {
                    "type": "score",
                    "score": "OverlyRealistic.General.ArbitraryData",
                    "target": {
                      "type": "fixed",
                      "name": "#or.mortar_user_mining_skill"
                    }
                  },
                  "range": {
                    "min": 3
                  }
                },
                {
                  "condition": "random_chance",
                  "chance": 0.15
                }
              ]
            },
            {
              "function": "set_count",
              "count": 1,
              "add": true,
              "conditions": [
                {
                  "condition": "value_check",
                  "value": {
                    "type": "score",
                    "score": "OverlyRealistic.General.ArbitraryData",
                    "target": {
                      "type": "fixed",
                      "name": "#or.mortar_user_mining_skill"
                    }
                  },
                  "range": 5
                },
                {
                  "condition": "random_chance",
                  "chance": 0.1
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}