{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "survivalplus:trade_hat",
          "quality": 4,
          "functions": [],
          "conditions": [
            {
              "condition": "minecraft:killed_by_player"
            },
            {
              "condition": "minecraft:random_chance",
              "chance": 0.08
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "emerald",
          "weight": 1
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:random_chance",
          "chance": 0.25
        }
      ]
    },
    {
      "rolls": {
        "min": 2,
        "max": 3
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "stick",
          "functions": [
            {
              "function": "minecraft:set_custom_data",
              "tag": "{xporb:tag}"
            }
          ]
        }
      ],
      "conditions": [
        {
          "condition": "minecraft:killed_by_player"
        }
      ]
    }
  ]
}