mojira.dev
MC-280174

Custom enchanted books do not apply to weapons via anvil

When I gave myself a Sharpness VII enchanted book and applied it with a diamond sword, it gave a Sharpness V diamond sword and not sharpness 7.

Steps to Reproduce:

  1. Give yourself an enchanted book beyond maximum survival enchant level (ex: Mending 2, Unbreaking 4, Bane of Arthropods 8, Lure 9, Loyalty 5) Use this sample: /give @s enchanted_book[stored_enchantments:{sharpness:7}]

  2. Grab an item compatible with that enchant (ex: Sharpness-Any sword, Lure-Fishing Rod, Power-Bow)

  3. Combine the item in the first slot and the enchanted book in the second slot

Expected result:

The item will be given the custom enchantment

Observed result:

The item sets its enchantment to the maximum survival enchant limit

(ex: Sharpness 7 to Sharpness 5, Loyalty 5 to Loyalty 3, Knockback 6 to Knockback 2)

Related issues

Attachments

Comments

migrated
[media][media]
MrMuskle

This ticket duplicates MC-248372

Arisa Bot

Thank you for your report!
We're tracking this issue in MC-248372, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

aStickGuy

(Unassigned)

Unconfirmed

(Unassigned)

25w06a

Retrieved