{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "manic:items/anirrum_altar",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#count"
                },
                "score": "manic.dummy"
              }
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:value_check",
          "value": {
            "type": "minecraft:score",
            "target": {
              "type": "minecraft:fixed",
              "name": "#anirrum_altar_charges"
            },
            "score": "manic.dummy"
          },
          "range": 0
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "manic:items/anirrum_altar/1_charge",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#count"
                },
                "score": "manic.dummy"
              }
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:value_check",
          "value": {
            "type": "minecraft:score",
            "target": {
              "type": "minecraft:fixed",
              "name": "#anirrum_altar_charges"
            },
            "score": "manic.dummy"
          },
          "range": 1
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "manic:items/anirrum_altar/2_charges",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#count"
                },
                "score": "manic.dummy"
              }
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:value_check",
          "value": {
            "type": "minecraft:score",
            "target": {
              "type": "minecraft:fixed",
              "name": "#anirrum_altar_charges"
            },
            "score": "manic.dummy"
          },
          "range": 2
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "manic:items/anirrum_altar/3_charges",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#count"
                },
                "score": "manic.dummy"
              }
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:value_check",
          "value": {
            "type": "minecraft:score",
            "target": {
              "type": "minecraft:fixed",
              "name": "#anirrum_altar_charges"
            },
            "score": "manic.dummy"
          },
          "range": 3
        }
      ]
    }
  ]
}
