mojira.dev
MC-240216

Swords can't be enchanted with level higher or equal to 8bit integer limit

I have attempted to get a 32K level diamond sword but instead got max of level 255

How to reproduce run command /give @p diamond_sword{Enchantments:[

{id:sharpness,lvl:32767}

,{id:looting,lvl:32767}]}

32K Swords exist in 1.17.0 and older still

 All 1.18 Snapshots are affected

Linked issues

Attachments

Comments 2

Duplicate of MC-231508, resolved as "Works As Intended".

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

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

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

boomerangos

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1, 21w43a

Retrieved