{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": {
        "type": "minecraft:binomial",
        "n": 3,
        "p": 0.15
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:emerald"
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:binomial",
        "n": 2,
        "p": 0.4
      },
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:arrow",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "min": 5,
                "max": 15
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "silentgear:crossbow_blueprint"
        },
        {
          "type": "minecraft:item",
          "weight": 10,
          "name": "minecraft:crossbow",
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{Damage: 150}",
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.5
                }
              ]
            },
            {
              "function": "minecraft:enchant_with_levels",
              "levels": {
                "min": 1,
                "max": 45
              },
              "conditions": [
                {
                  "condition": "minecraft:random_chance",
                  "chance": 0.2
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
