Swordless is a data pack that aims to make combat more interesting by disabling swords and allowing other weapons to use sword enchantments.
When a sword is in your inventory, you'll start taking damage until you die or remove it from your inventory. If you just want the enchantments on other weapons and still want to be able to use swords, run this command: /tag @s add swordless_exempt
.
The allowed enchantments follow the below chart. In addition, all enchantments can be applied using an enchanting table (for example, an axe can be enchanted with sharpness through an enchanting table).