{
  "type": "minecraft:entity",
  "pools": [
    {
      "conditions": [
        {
          "condition": "killed_by_player"
        },
        {
          "condition": "inverted",
          "term": {
            "condition": "entity_properties",
            "entity": "this",
            "predicate": {
              "nbt": "{Tags:[\"jjc_boss\"]}"
            }
          }
        }
      ],
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 1
            }
          ],
          "conditions": [
            {
              "condition": "entity_scores",
              "entity": "this",
              "scores": {
                "jjc_hp0": {
                  "max": 15
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 2
            }
          ],
          "conditions": [
            {
              "condition": "entity_scores",
              "entity": "this",
              "scores": {
                "jjc_hp0": {
                  "min": 16,
                  "max": 29
                }
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 3
            }
          ],
          "conditions": [
            {
              "condition": "entity_scores",
              "entity": "this",
              "scores": {
                "jjc_hp0": {
                  "min": 30
                }
              }
            }
          ]
        }
      ]
    },
    {
      "conditions": [
        {
          "condition": "killed_by_player"
        },
        {
          "condition": "entity_properties",
          "entity": "this",
          "predicate": {
            "nbt": "{Tags:[\"jjc_boss\"]}"
          }
        },
        {
          "condition": "entity_scores",
          "entity": "this",
          "scores": {
            "jjc_hp0": {
              "min": 1
            }
          }
        }
      ],
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "set_count",
              "count": 20
            }
          ]
        }
      ]
    }
  ]
}