mojira.dev
MC-297055

Harness cannot receive custom enchantments through enchanting table

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:

  1. Install the attached datapack “harness.zip”

  2. Enter a world and place an enchanting table

  3. 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.

Attachments

Comments 2

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.

Yeah if you want all harnesses to be enchantable from the get-go you need to override the crafting recipe to make them so.

Igor

(Unassigned)

Unconfirmed

(Unassigned)

25w16a

Retrieved