1.21 enchants

I'm having trouble figuring out how to make it so an attack hit slower when using an enchantments

"minecraft:attributes": [
  {
    "id": "code:test",
    "attribute": "minecraft:generic.attack_speed",
    "amount": {
      "type": "minecraft:linear",
      "base": 1,
      "per_level_above_first": 0.1
    },
    "operation": "add_value"
  }
]

} }

i dont get it

Continue to help post