Weapon Enchantment Compat is a small, data-driven Fabric compatibility mod for Minecraft 1.20.1. It lets datapacks decide which modded weapons may use two enchantments that normally reject those weapon types:
The mod deliberately ships its compatibility tags with no item entries. Installing the JAR by itself does not whitelist weapons from RPG Series, Soulslike Weaponry, Death Knights, or any other content mod.
Instead, modpack authors can populate normal Minecraft item tags through a datapack via the tags:
#backstabbing_dagger_compat:daggers - additional weapons allowed to receive Farmer's Delight Backstabbing,#weapon_enchantment_compat:looting_weapons - additional weapons allowed to receive vanilla Looting.Weapon Enchantment Compat only extends enchantment applicability for items placed in those tags. It does not globally convert weapons into knives, swords, or axes.
For Looting, the mod extends the normal enchantment applicability check and includes an anvil-specific compatibility fallback so tagged weapons remain enchantable in modpacks with other anvil/enchantment mixins.
The mod does not alter:
There are no tick handlers, entity scans, or recurring runtime tasks.
For Minecraft Fabric 1.20.1, create a datapack using pack format 15, and the following structure:
My Weapon Compat/
├── pack.mcmeta
└── data/
├── backstabbing_dagger_compat/
│ └── tags/
│ └── items/
│ └── daggers.json
└── weapon_enchantment_compat/
└── tags/
└── items/
└── looting_weapons.json
Example pack.mcmeta:
{
"pack": {
"pack_format": 15,
"description": "My Weapon Enchantment Compat"
}
}
data/backstabbing_dagger_compat/tags/items/daggers.json
{
"replace": false,
"values": [
"examplemod:steel_dagger",
"#examplemod:daggers"
]
}
data/weapon_enchantment_compat/tags/items/looting_weapons.json
{
"replace": false,
"values": [
"examplemod:great_axe",
"#examplemod:heavy_weapons"
]
}
Keep "replace": false so multiple datapacks can contribute compatible items at the same time.
The base JAR is intended to stay neutral and reusable. Put the weapon IDs and existing item tags for your own pack in a separate datapack, allowing compatibility lists to be changed without rebuilding and updating the mod.
This mod was primarily made for the Path of the Ascended Modpack, and as such may not worth with other setups and modpacks. I take no responsility for, and will not fix bugs caused by other implementations or used of this mod outside of the Path of the Ascended modpack.