[
  {
    "function": "minecraft:set_damage",
    "damage": {
      "min": 0.01,
      "max": 1
    },
    "add": false
  },
  {
    "function": "minecraft:enchant_randomly",
    "options": "#minecraft:on_mob_spawn_equipment",
    "only_compatible": true,
    "conditions": [
      {
        "condition": "minecraft:random_chance",
        "chance": 0.1
      }
    ]
  },
  {
    "function": "minecraft:enchant_randomly",
    "options": "#minecraft:on_mob_spawn_equipment",
    "only_compatible": true,
    "conditions": [
      {
        "condition": "minecraft:random_chance",
        "chance": 0.2
      }
    ]
  },
  {
    "function": "minecraft:enchant_randomly",
    "options": "#minecraft:on_mob_spawn_equipment",
    "only_compatible": true,
    "conditions": [
      {
        "condition": "minecraft:random_chance",
        "chance": 0.3
      }
    ]
  },
  {
    "function": "minecraft:set_components",
    "components": {
      "minecraft:unbreakable": {
        "show_in_tooltip": true
      }
    },
    "conditions": [
      {
        "condition": "minecraft:random_chance",
        "chance": 0.01
      }
    ]
  }
]
