If a custom enchantment is defined to have a harness be the enchantment item or an item tag with harnesses and this enchantment is in non_treasure.json within vanilla enchantment tags, it will not be able to directly be enchanted onto the harness but can be enchanted onto books which can be combined with the harness in an anvil.
Steps to reproduce:
Install the attached datapack “harness.zip”
Enter a world and place an enchanting table
Place any type of harness into the enchanting slot
Expected result:
There should be options for enchantments to apply to the harness.
Actual result:
Options for enchantments are completely blank.
Affects both snapshots with harnesses as of now.
I’ve come to a conclusion that this is likely not a bug, and rather a lack of enchantable component. This must have not existed until recently because now it will work on items but unless you manually add enchantable value to it you can’t just slap it into an enchanting table and enchant it.
This “solution” leads to a new issue where items that were manually given the enchantable component don’t lose it on being enchanted, even if it is a book which means the item id is switched.