{
  "type": "minecraft:entity",
  "pools": [
    {
      "name": "shell",
      "conditions": [
        {
          "condition": "quark:flag",
          "flag": "crab_brewing"
        },
        {
          "condition": "killed_by_player"
        },
        {
          "condition": "random_chance_with_looting",
          "chance": 0.25,
          "looting_multiplier": 0.03
        }
      ],
      "rolls": 1,
      "entries": [
        {
          "type": "item",
          "name": "quark:crab_shell"
        }
      ]
    },
    {
      "rolls": 1,
      "name": "legs",
      "entries": [
        {
          "type": "minecraft:item",
          "name": "quark:crab_leg",
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 0,
                "max": 1,
                "type": "minecraft:uniform"
              },
              "add": false
            },
            {
              "function": "minecraft:furnace_smelt",
              "conditions": [
                {
                  "condition": "minecraft:entity_properties",
                  "predicate": {
                    "flags": {
                      "is_on_fire": true
                    }
                  },
                  "entity": "this"
                }
              ]
            },
            {
              "function": "looting_enchant",
              "count": {
                "min": 0,
                "max": 1
              }
            }
          ]
        }
      ]
    },
    {
      "name": "crab",
      "rolls": 1,
      "entries":[
        {
          "type": "minecraft:empty",
          "weight": 49
        },
        {
          "type": "item",
          "name": "kubejs:crab_totem"
        }
      ]
    }
  ]
}
