{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "immersive_weathering:tallow",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 0,
                "max": 2
              }
            },
            {
              "function": "minecraft:looting_enchant",
              "count": {
                "min": 0,
                "max": 1
              }
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:any_of",
              "terms": [
                {
                  "condition": "minecraft:damage_source_properties",
                  "predicate": {
                    "tags": [
                      {
                        "id": "minecraft:is_fire",
                        "expected": false
                      }
                    ]
                  }
                },
                {
                  "condition": "minecraft:damage_source_properties",
                  "predicate": {
                    "source_entity": {
                      "equipment": {
                        "mainhand": {
                          "enchantments": [
                            {
                              "enchantment": "minecraft:flame"
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                {
                  "condition": "minecraft:damage_source_properties",
                  "predicate": {
                    "source_entity": {
                      "equipment": {
                        "mainhand": {
                          "enchantments": [
                            {
                              "enchantment": "minecraft:fire_aspect"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
