[
  {
    "function": "minecraft:set_custom_data",
    "tag": "{weaken:tag,cursed:tag}"
  },
  {
    "function": "minecraft:set_attributes",
    "modifiers": [
      {
        "attribute": "attack_damage",
        "amount": 8,
        "operation": "add_value",
        "id": "048e9c0a-024a-4a95-8fa5-cdb7246d5eea",
        "slot": "mainhand"
      },
      {
        "attribute": "attack_speed",
        "amount": -2.5,
        "operation": "add_value",
        "id": "ce32a99b-7c3a-46a3-8a97-a266316b7c07",
        "slot": "mainhand"
      }
    ]
  }
]